Function

MusicPlayerPreroll

Prepares a music player to play.

Declaration

OSStatus MusicPlayerPreroll(MusicPlayer inPlayer);

Parameters

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.