Instance Method


Returns the host time that will be (or was) played at the specified beat.


func hostTime(forBeats inBeats: AVMusicTimeStamp, error outError: NSErrorPointer) -> UInt64


This call is only valid if the player is playing and will return 0 with an error if the player is not playing or if the starting position of the player (its starting beat) was after the specified beat. The method uses the sequence's tempo map to translate a beat time from the starting time and beat of the player.

See Also

Managing Time Stamps

typealias AVMusicTimeStamp

A fractional number of beats.

func seconds(forBeats: AVMusicTimeStamp) -> TimeInterval

Gets the time, in seconds, for the given beat position (timestamp) in the track.