AVAudioTime

class AVAudioTime : NSObject
  • AVAudioTime.extrapolateTime fails for host time valid times, use extrapolateTimeShimmed instead. https://bugreport.apple.com/web/?problemID=34249528

    Declaration

    Swift

    open func extrapolateTimeShimmed(fromAnchor anchorTime: AVAudioTime) -> AVAudioTime
  • An AVAudioTime with a valid hostTime representing now.

    Declaration

    Swift

    public static func now() -> AVAudioTime
  • Returns an AVAudioTime offset by seconds.

    Declaration

    Swift

    open func offset(seconds: Double) -> AVAudioTime
  • The time in seconds between receiver and otherTime.

    Declaration

    Swift

    open func timeIntervalSince(otherTime: AVAudioTime) -> Double?
  • Convert an AVAudioTime object to seconds with a hostTime reference

    Declaration

    Swift

    open func toSeconds(hostTime time: UInt64) -> Double
  • Convert seconds to AVAudioTime with a hostTime reference – time must be > 0

    Declaration

    Swift

    open class func secondsToAudioTime(hostTime: UInt64, time: Double) -> AVAudioTime