Function

MusicPlayerGetHostTimeForBeats

Gets the host time associated with a specified beat.

Declaration

OSStatus MusicPlayerGetHostTimeForBeats(MusicPlayer inPlayer, MusicTimeStamp inBeats, UInt64 *outHostTime);

Parameters

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 inBeats value.

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