IntdashAudioEncoderDelegate
public protocol IntdashAudioEncoderDelegate : NSObjectProtocol
IntdashAudioEncoder
が使用する Delegate 表すプロトコル。
-
セットした音声サンプルのエンコードが成功した際に呼び出されるコールバック。
Declaration
Swift
func encodedSamples(_ encoder: IntdashAudioEncoder, sampleData: Data, timestamp: TimeInterval)
Parameters
encoder
音声用エンコーダー
sampleData
エンコードされたサンプルデータ
timestamp
タイムスタンプ
-
セットした音声サンプルのエンコードが失敗した際に呼び出されるコールバック。
Declaration
Swift
func encodeFailedSampleBuffer(_ encoder: IntdashAudioEncoder, error: NSError)
Parameters
encoder
音声用エンコーダー
error
エラー情報