MusicPlayerSetTime(_:_:)
Sets the playback point for a music player, in beats.
Declaration
func MusicPlayerSetTime(_ inPlayer: MusicPlayer, _ inTime: MusicTimeStamp) -> OSStatusParameters
- 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
NewMusicPlayer(_:)DisposeMusicPlayer(_:)MusicPlayerGetBeatsForHostTime(_:_:_:)MusicPlayerGetHostTimeForBeats(_:_:_:)MusicPlayerGetPlayRateScalar(_:_:)MusicPlayerGetSequence(_:_:)MusicPlayerGetTime(_:_:)MusicPlayerIsPlaying(_:_:)MusicPlayerPreroll(_:)MusicPlayerSetPlayRateScalar(_:_:)MusicPlayerSetSequence(_:_:)MusicPlayerStart(_:)MusicPlayerStop(_:)MusicPlayerMusicTimeStamp