|
pianod2
multisource multiuser scriptable networked music player
|
Base class for OS X's AVFoundation audio player. More...


Instance Methods | |
| (virtual void) | - pause |
| Pause playback. If already paused, do nothing. More... | |
| (virtual void) | - abort |
| Don't play the rest of the song. More... | |
| (virtual void) | - cue |
| Starts thread in paused mode. More... | |
| (virtual void) | - play |
| Start playback or resume playback if paused. If already playing, continue. More... | |
| (virtual void) | - setVolume |
| Adjust volume in decibels. More... | |
| (virtual State) | - currentState |
| (virtual float) | - trackDuration |
| Length of track in seconds, or a negative number if unknown. More... | |
| (virtual float) | - playPoint |
| Seconds from start, or a negative value if unknown. More... | |
| (virtual RESPONSE_CODE) | - completionStatus |
| () | - AVFoundationPlayer |
| Play a media file or URL using ffmpeg. More... | |
| (virtual) | - ~AVFoundationPlayer |
Instance Methods inherited from Media::Player | |
| virtual | ~Player (void) |
| virtual float | playRemaining (void) const |
| Seconds left in playback, or a negative number if unknown. More... | |
| bool | ready (void) const |
| Indicate if player has finished initializing. More... | |
| bool | playbackComplete (void) const |
| Indicate if playback is complete and ready for cleanup. More... | |
| virtual time_t | getPauseTimeout (void) |
| When paused, get the time at which the song will expire. More... | |
Private Attributes | |
| std::mutex | avplayer_mutex |
| AVPlayer * | audio_player = nil |
| volatile Media::Player::State | state = Initializing |
| PlayerHelper * | monitor = nullptr |
| float | audio_gain |
Additional Inherited Members | |
Public Types inherited from Media::Player | |
| enum | State { DoesNotExist , Initializing , Cueing , Playing , Done } |
Class Methods inherited from Media::Player | |
| static Media::Player * | getPlayer (const AudioSettings &settings, const std::string &media_url, float initial_gain) |
| Get the a media player currently compiled in the code. More... | |
Base class for OS X's AVFoundation audio player.
| - AVFoundationPlayer: | (const std::string &) | media_url | |
| (float) | initial_audio_gain = 0 |
||
Play a media file or URL using ffmpeg.
| media_url | The filename or URL of the media. |
| initial_audio_gain | Gain to apply when playing file, in decibels. If ReplayGain is encountered during playback, that is preferred over this value. |

| - AVFoundationPlayer: | (void) |

| - (virtual void) AVFoundationPlayer: | (void) |
Don't play the rest of the song.
Implements Media::Player.
| - (virtual RESPONSE_CODE) AVFoundationPlayer: | (void) |
Implements Media::Player.
| - (virtual void) AVFoundationPlayer: | (void) |
Starts thread in paused mode.
Implements Media::Player.
| - (virtual State) AVFoundationPlayer: | (void) | const |
Implements Media::Player.
| - (virtual void) AVFoundationPlayer: | (void) |
Pause playback. If already paused, do nothing.
Implements Media::Player.
| - (virtual void) AVFoundationPlayer: | (void) |
Start playback or resume playback if paused. If already playing, continue.
Implements Media::Player.
| - (virtual float) AVFoundationPlayer: | (void) | const |
Seconds from start, or a negative value if unknown.
Implements Media::Player.
| - (void) AVFoundationPlayer: | (float) | volume |
| - (virtual float) AVFoundationPlayer: | (void) | const |
Length of track in seconds, or a negative number if unknown.
Implements Media::Player.
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |