MusicPlayerGetHostTimeForBeats(_:_:_:)
Gets the host time associated with a specified beat.
Declaration
func MusicPlayerGetHostTimeForBeats(_ inPlayer: MusicPlayer, _ inBeats: MusicTimeStamp, _ outHostTime: UnsafeMutablePointer<UInt64>) -> OSStatusParameters
- inPlayer:
The music player that you are querying.
- inBeats:
The beat number that you want the host time for.
- outHostTime:
On output, the host time associated with the
inBeatsvalue.
Return Value
A result code. This function returns an error if the player is not playing.
Discussion
This function is valid only if the music player is playing. For converting between beats and seconds, see MusicSequenceGetSecondsForBeats(_:_:_:) and MusicSequenceGetBeatsForSeconds(_:_:_:).
See Also
Managing a Music Player
NewMusicPlayer(_:)DisposeMusicPlayer(_:)MusicPlayerGetBeatsForHostTime(_:_:_:)MusicPlayerGetPlayRateScalar(_:_:)MusicPlayerGetSequence(_:_:)MusicPlayerGetTime(_:_:)MusicPlayerIsPlaying(_:_:)MusicPlayerPreroll(_:)MusicPlayerSetPlayRateScalar(_:_:)MusicPlayerSetSequence(_:_:)MusicPlayerSetTime(_:_:)MusicPlayerStart(_:)MusicPlayerStop(_:)MusicPlayerMusicTimeStamp