AACDecoder
public class AACDecoder : NSObject
AAC用のデコーダークラス。
-
デコード時の音声フォーマットのデフォルト値(
.pcmFloat32)。Declaration
Swift
public static let DEFAULT_DECODE_FORMAT: IntdashAudioFormat -
デコード時のサンプリングレートのデフォルト値( 48000 )。
Declaration
Swift
public static let DEFAULT_DECODE_SAMPLE_RATE: Double -
デコード時の音声フォーマット。
Declaration
Swift
public let decodeFormat: IntdashAudioFormat -
デコード時のサンプリングレート。
Declaration
Swift
public let decodeSampleRate: Double -
オブジェクトを識別するためのタグ。
Declaration
Swift
public var tag: Int -
このクラスが使用する Delegate。
Declaration
Swift
public weak var delegate: AACDecoderDelegate? -
このクラスが使用する Delegate。
Declaration
Swift
public weak var sampleParseDelegate: AACDecoderSampleParseDelegate? -
入力に使用した音声フォーマット。
Declaration
Swift
public private(set) var inputFormatDesc: AudioStreamBasicDescription? { get } -
出力される音声フォーマット。
Declaration
Swift
public private(set) var outputFormatDesc: AudioStreamBasicDescription? { get } -
AACヘッダー。
Declaration
Swift
public private(set) var aacHeader: AACHeader? { get } -
AACDecoder を生成します。
Declaration
Swift
public init(decodeFormat: IntdashAudioFormat = AACDecoder.DEFAULT_DECODE_FORMAT, decodeSampleRate: Double = AACDecoder.DEFAULT_DECODE_SAMPLE_RATE)Parameters
decodeFormatデコード時の音声フォーマット。
decodeSampleRateデコード時のサンプルレート。
-
AACDecoder を生成します。
Declaration
Swift
public init(commonFormat: AVAudioCommonFormat, decodeSampleRate: Double = AACDecoder.DEFAULT_DECODE_SAMPLE_RATE) throwsParameters
commonFormatデコード時の音声フォーマット。
decodeSampleRateデコード時のサンプリングレート。
-
デコードしたい音声サンプルを追加します。
Declaration
Swift
public func appendAudioSamples(sampleData: Data, timestamp: TimeInterval = -1)Parameters
sampleDataエンコードされた音声サンプル(ADTS形式)。
timestampタイムスタンプ。
-
初期状態にリセットします。
Declaration
Swift
public func reset() -
割り当てを解除します。
Declaration
Swift
public func dispose()
AACDecoder Class Reference