AudioSample Structure

public struct AudioSample

A decrypted compressed audio sample.

  • Decrypted compressed sample bytes.

    The payload is not PCM. Decode it according to the most recent AudioFormat event.

    Declaration

    Swift

    public let data: Data
  • pts

    Presentation timestamp on the content timeline.

    Declaration

    Swift

    public let pts: CMTime
  • dts

    Decode timestamp when it differs from, or is known separately from, pts.

    Declaration

    Swift

    public let dts: CMTime?
  • Sample duration.

    Declaration

    Swift

    public let duration: CMTime
  • Indicates whether the sample is independently decodable according to the source stream metadata.

    Declaration

    Swift

    public let isSync: Bool