AudioCodec

public class AudioCodec
extension AudioCodec: Running

The AudioCodec translate audio data to another format.

  • The audio encoding or decoding options.

    See more

    Declaration

    Swift

    public enum Option : String, KeyPathRepresentable
  • The default minimum bitrate for an AudioCodec, value is 8000.

    Declaration

    Swift

    public static let minimumBitrate: UInt32
  • The default bitrate for an AudioCidec, the value is 32000.

    Declaration

    Swift

    public static let defaultBitrate: UInt32
  • The default channels for an AudioCodec, the value is 0 means according to a input source.

    Declaration

    Swift

    public static let defaultChannels: UInt32
  • The default sampleRate for an AudioCodec, the value is 0 means according to a input source.

    Declaration

    Swift

    public static let defaultSampleRate: Double
  • The default mamimu buffers for an AudioCodec.

    Declaration

    Swift

    public static let defaultMaximumBuffers: Int
  • Specifies the output format.

    Declaration

    Swift

    public var destination: Format
  • Specifies the delegate.

    Declaration

    Swift

    public weak var delegate: AudioCodecDelegate?
  • Declaration

    Swift

    public private(set) var isRunning: Atomic<Bool> { get }
  • Specifies the settings for audio codec.

    Declaration

    Swift

    public var settings: Setting<AudioCodec, Option> { get set }
  • Create an AudioCodec instance.

    Declaration

    Swift

    public init()
  • Encodes bytes data.

    Declaration

    Swift

    public func encodeBytes(_ bytes: UnsafeMutableRawPointer?, count: Int, presentationTimeStamp: CMTime)
  • Encodes a CMSampleBuffer.

    Declaration

    Swift

    public func encodeSampleBuffer(_ sampleBuffer: CMSampleBuffer, offset: Int = 0)
  • The type of the AudioCodec supports format.

    See more

    Declaration

    Swift

    public enum Format

Running