Contents

MusicPlayerPreroll(_:)

Prepares a music player to play.

Declaration

func MusicPlayerPreroll(_ inPlayer: MusicPlayer) -> OSStatus

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.

See Also

Managing a Music Player