PlaybackPosition

public struct PlaybackPosition

Playback position information for AudioPlayerNode

  • The current frame position or nil if unknown

    Declaration

    Swift

    public let current: AVAudioFramePosition?
  • The total number of frames or nil if unknown

    Declaration

    Swift

    public let total: AVAudioFramePosition?
  • Returns current as a fraction of total

    Declaration

    Swift

    public var progress: Double? { get }
  • Returns the frames remaining

    Declaration

    Swift

    public var remaining: AVAudioFramePosition? { get }