Contents

MusicPlayerGetTime(_:_:)

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

Declaration

func MusicPlayerGetTime(_ inPlayer: MusicPlayer, _ outTime: UnsafeMutablePointer<MusicTimeStamp>) -> OSStatus

Parameters

  • inPlayer:

    The music player you want to get the playback point for.

  • outTime:

    On output, the playback point for the music player.

Return Value

A result code.

Discussion

For converting between beats and seconds, see MusicSequenceGetSecondsForBeats(_:_:_:) and MusicSequenceGetBeatsForSeconds(_:_:_:).

See Also

Managing a Music Player