IntdashAudioEncoder

open class IntdashAudioEncoder : NSObject, AACEncoderDelegate, OpusEncoderDelegate

音声用のエンコーダークラス。

  • エンコードに使用する音声のコーデック。

    Declaration

    Swift

    public private(set) var codec: IntdashAudioCodec { get }
  • エンコード用オプション。

    Declaration

    Swift

    public private(set) var option: IntdashAudioEncoderOption { get }
  • tag

    オブジェクトを識別するためのタグ。

    Declaration

    Swift

    public var tag: Int
  • このクラスが使用する Delegate。

    Declaration

    Swift

    public weak var delegate: IntdashAudioEncoderDelegate?
  • ログレベル。

    Declaration

    Swift

    public var logLevel: IntdashMediaLogLevel { get set }
  • AAC用エンコーダー。

    Declaration

    Swift

    public var aacEncoder: AACEncoder?
  • Opus用エンコーダー。

    Declaration

    Swift

    public var opusEncoder: OpusEncoder?
  • IntdashAudioEncoder を生成します。

    Declaration

    Parameters

    codec

    使用するコーデック。

    option

    エンコーダー用のオプション。

  • エンコードする音声サンプルを追加します。

    Declaration

    Swift

    public func append(buffer: CMSampleBuffer, timestamp: TimeInterval = -1)

    Parameters

    buffer

    エンコードしたい音声サンプルを格納したバッファー。 入力するサンプルバッファーの音声フォーマットは pcmFloat32 のみサポートしています。

    timestamp

    エンコードする音声サンプルに対応するタイムスタンプ。 エンコードが成功した際に、エンコードされた音声サンプルとともに delegate に渡されます。

  • エンコーダーをリセットします。

    Declaration

    Swift

    public func reset()
  • エンコーダーをリセットします。

    Declaration

    Swift

    public func reset(option: IntdashAudioEncoderOption)

    Parameters

    option

    エンコーダー用オプション

  • 割り当てを解除します。

    Declaration

    Swift

    public func dispose()

AACEncoderDelegate

IntdashAudioEncoderDelegate