Contents

MusicPlayerIsPlaying(_:_:)

Indicates whether or not a music player is playing.

Declaration

func MusicPlayerIsPlaying(_ inPlayer: MusicPlayer, _ outIsPlaying: UnsafeMutablePointer<DarwinBoolean>) -> OSStatus

Parameters

  • 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