Contents

MusicPlayerSetTime(_:_:)

Sets the playback point for a music player, in beats.

Declaration

func MusicPlayerSetTime(_ inPlayer: MusicPlayer, _ inTime: MusicTimeStamp) -> OSStatus

Parameters

  • inPlayer:

    The music player you want to set the playback point on.

  • inTime:

    The time, in beats, to set the playback point to.

Return Value

A result code

Discussion

You can call this function while a music player is stopped or playing. If playing at the time of the call, playback continues at the specified point. No range checking on the inTime value is performed by this function.

See Also

Managing a Music Player