Contents

playerTime(forNodeTime:)

Converts from node time to player time.

Declaration

func playerTime(forNodeTime nodeTime: AVAudioTime) -> AVAudioTime?

Parameters

  • nodeTime:

    The node time.

Return Value

A time relative to the player’s start time, or nil if the player isn’t playing.

Discussion

For more information about this method and its inverse nodeTime(forPlayerTime:), see Player Timeline.

See Also

Converting Node and Player Times