beats(forHostTime:error:)
Gets the beat the system plays at the specified host time.
Declaration
func beats(forHostTime inHostTime: UInt64, error outError: NSErrorPointer) -> AVMusicTimeStampParameters
- inHostTime:
The host time for the beat position.
- outError:
On exit, if an error occurs, a description of the error.
Discussion
This call is valid when the player is in a playing state. It returns 0 with an error, otherwise, or if the starting position of the player is after the specified host time. This method uses the sequence’s tempo map to retrieve a beat time from the specified host time.