MusicPlayerPreroll(_:)
Prepares a music player to play.
Declaration
func MusicPlayerPreroll(_ inPlayer: MusicPlayer) -> OSStatusParameters
- inPlayer:
The music player to prepare to play.
Return Value
A result code
Discussion
Call this function in advance of playback to reduce a music player’s startup latency. If you call MusicPlayerStart(_:) without first calling this function, the player will call this function before beginning playback.
See Also
Managing a Music Player
NewMusicPlayer(_:)DisposeMusicPlayer(_:)MusicPlayerGetBeatsForHostTime(_:_:_:)MusicPlayerGetHostTimeForBeats(_:_:_:)MusicPlayerGetPlayRateScalar(_:_:)MusicPlayerGetSequence(_:_:)MusicPlayerGetTime(_:_:)MusicPlayerIsPlaying(_:_:)MusicPlayerSetPlayRateScalar(_:_:)MusicPlayerSetSequence(_:_:)MusicPlayerSetTime(_:_:)MusicPlayerStart(_:)MusicPlayerStop(_:)MusicPlayerMusicTimeStamp