MusicPlayerIsPlaying(_:_:)
Indicates whether or not a music player is playing.
Declaration
func MusicPlayerIsPlaying(_ inPlayer: MusicPlayer, _ outIsPlaying: UnsafeMutablePointer<DarwinBoolean>) -> OSStatusParameters
- inPlayer:
The music player to query.
- outIsPlaying:
On output
true(nonzero) if playing,false(zero) if not playing.
Return Value
A result code
Discussion
If a music player has started playing and has not been explicitly stopped, the outIsPlaying value is true. Specifically, if the player’s music sequence has completed—so there is no more audible output—but the player has not been explicitly stopped, the outIsPlaying value is true and the music player’s time value continues to increase.
See Also
Managing a Music Player
NewMusicPlayer(_:)DisposeMusicPlayer(_:)MusicPlayerGetBeatsForHostTime(_:_:_:)MusicPlayerGetHostTimeForBeats(_:_:_:)MusicPlayerGetPlayRateScalar(_:_:)MusicPlayerGetSequence(_:_:)MusicPlayerGetTime(_:_:)MusicPlayerPreroll(_:)MusicPlayerSetPlayRateScalar(_:_:)MusicPlayerSetSequence(_:_:)MusicPlayerSetTime(_:_:)MusicPlayerStart(_:)MusicPlayerStop(_:)MusicPlayerMusicTimeStamp