![]() |
Sayonara Player
|
Global handler for current playback state (Singleton) More...
#include <PlayManager.h>
Public Slots | |
| void | play () |
| Start playing if there's a track. | |
| void | wakeUp () |
| Emit wake up signal after stopping state. | |
| void | playPause () |
| toggle play/pause | |
| void | pause () |
| pause track, if currently playing | |
| void | previous () |
| change to previous track | |
| void | next () |
| change to next track | |
| void | stop () |
| stop playback | |
| void | record (bool b) |
| request recording (see also sig_record(bool b)) More... | |
| void | seekRelative (double percent) |
| seek relative More... | |
| void | seekAbsoluteMs (MilliSeconds ms) |
| seek absolute More... | |
| void | seekRelativeMs (MilliSeconds ms) |
| seekRelativeMs More... | |
| void | setCurrentPositionMs (MilliSeconds ms) |
| set current position of track This method does not seek. Just tells the playmanager where the current position is More... | |
| void | changeCurrentTrack (const MetaData &md, int trackIdx) |
| change current track More... | |
| void | changeCurrentMetadata (const MetaData &md) |
| change_track More... | |
| void | setTrackReady () |
| notify, that track is ready for playback | |
| void | setTrackFinished () |
| void | buffering (int progress) |
| notifiy, that track is in buffering state currently More... | |
| void | volumeUp () |
| increase volume by 5 | |
| void | volumeDown () |
| decrease volume by 5 | |
| void | setVolume (int vol) |
| set volume More... | |
| void | setMute (bool b) |
| mute/unmute More... | |
| void | toggleMute () |
| If already muted, then unmute. If unmuted, then mute it. | |
| void | changeDuration (MilliSeconds ms) |
| Change the duration. This is usually called when the Engine sends a duration changed signal. You should not use this. More... | |
| void | changeBitrate (Bitrate br) |
| void | error (const QString &message) |
| Some playback error occured. More... | |
Signals | |
| void | sigStreamFinished (const MetaData &old_md) |
| emitted when a streamed track has finished More... | |
| void | sigPlaystateChanged (PlayState) |
| emitted, when PlayState was changed | |
| void | sigNext () |
| next track was triggered | |
| void | sigWakeup () |
| This signal is sent when the playstate changed from stopped to play. | |
| void | sigPrevious () |
| previous track was triggered | |
| void | sigStopped () |
| stop was triggered | |
| void | sigSeekedRelative (double percent) |
| relative seeking was triggered More... | |
| void | sigSeekedRelativeMs (MilliSeconds ms) |
| relative seeking was triggered More... | |
| void | sigSeekedAbsoluteMs (MilliSeconds ms) |
| absolute seeking was triggered More... | |
| void | sigPositionChangedMs (MilliSeconds ms) |
| position in track has changed More... | |
| void | sigCurrentTrackChanged (const MetaData &md) |
| track has changed More... | |
| void | sigCurrentMetadataChanged () |
| void | sigTrackIndexChanged (int idx) |
| track has changed More... | |
| void | sigDurationChangedMs () |
| duration of track has changed More... | |
| void | sigBitrateChanged () |
| void | sigPlaylistFinished () |
| playlist has finished | |
| void | sigRecording (bool b) |
| recording is requested More... | |
| void | sigBuffering (int b) |
| emitted when currently in buffering state More... | |
| void | sigVolumeChanged (int vol) |
| emitted when volume has changed More... | |
| void | sigMuteChanged (bool b) |
| emitted when mute state has changed More... | |
| void | sigError (const QString &message) |
Public Member Functions | |
| PlayState | playstate () const |
| get current play state More... | |
| MilliSeconds | currentPositionMs () const |
| get current position in milliseconds More... | |
| MilliSeconds | currentTrackPlaytimeMs () const |
| MilliSeconds | initialPositionMs () const |
| get position in milliseconds where track will start More... | |
| MilliSeconds | durationMs () const |
| get duration of track More... | |
| Bitrate | bitrate () const |
| const MetaData & | currentTrack () const |
| get current track More... | |
| int | volume () const |
| get current volume More... | |
| bool | isMuted () const |
| query mute status More... | |
| void | shutdown () |
| Shutdown the computer. | |
Global handler for current playback state (Singleton)
|
slot |
notifiy, that track is in buffering state currently
| progress |
|
slot |
change_track
| md |
|
slot |
change current track
| md | new MetaData object |
|
slot |
Change the duration. This is usually called when the Engine sends a duration changed signal. You should not use this.
| ms |
| MilliSeconds PlayManager::currentPositionMs | ( | ) | const |
get current position in milliseconds
| const MetaData& PlayManager::currentTrack | ( | ) | const |
get current track
| MilliSeconds PlayManager::durationMs | ( | ) | const |
get duration of track
|
slot |
Some playback error occured.
| message |
| MilliSeconds PlayManager::initialPositionMs | ( | ) | const |
get position in milliseconds where track will start
| bool PlayManager::isMuted | ( | ) | const |
query mute status
| PlayState PlayManager::playstate | ( | ) | const |
get current play state
|
slot |
request recording (see also sig_record(bool b))
| b | true, when a new recording session should begin, false if a recording session should stop |
|
slot |
seek absolute
| ms | absolute position in milliseconds |
|
slot |
seek relative
| percent | relative position within track |
|
slot |
seekRelativeMs
| ms | relative position to current position in milliseconds |
|
slot |
set current position of track This method does not seek. Just tells the playmanager where the current position is
| ms | position in milliseconds. |
|
slot |
mute/unmute
| b |
|
slot |
set volume
| vol | value between [0,100], will be cropped if not within boundaries |
|
signal |
emitted when currently in buffering state
| b | true if buffering, false else |
|
signal |
track has changed
| md | new MetaData |
|
signal |
duration of track has changed
| ms | duration of track in milliseconds |
|
signal |
emitted when mute state has changed
| b | true if muted, false else |
|
signal |
position in track has changed
| ms | absolute position in milliseconds |
|
signal |
recording is requested
| b | true, when a new recording session should begin, false if a recording session should stop |
|
signal |
absolute seeking was triggered
| ms | absolute position in milliseconds |
|
signal |
relative seeking was triggered
| percent | relative position in track |
|
signal |
relative seeking was triggered
| ms | relative position to current position in milliseconds |
|
signal |
emitted when a streamed track has finished
| old_md | the last played track |
|
signal |
track has changed
| idx | index in playlist |
|
signal |
emitted when volume has changed
| vol | value between 0 and 100 |
| int PlayManager::volume | ( | ) | const |
get current volume
1.8.15