400-881-9892

文档中心

官方文档,可查阅产品介绍、快速入门、用户指南、开发指南、API参考、SDK参考、帮助等信息。

文档中心 互动课堂

Overview of TKAudioMixer.h

    TKAudioMixer is an interface class provided by the SDK for audio mixing. It can mix multiple audio streams and then output the result.TKAudioMixerOutputDelegate is the callback class for the output of mixed audio data.TKAudioInfo is the class for audio format information.

    TKAudioMixer
    • Main methods:
    Method name Method description
    initWithDelegate Initialize the object
    addSource Add input source
    removeSource Remove input source
    receiveData Receive input source data
    TKAudioMixerOuputDelegate
    • Main methods:
    Method name Method description
    mixedAudioOutput Audio mixing data output callback
    TKAudioInfo
    • Main properties:
    Property name Property description
    bytes_per_sample Audio resolution
    sample_rate Sampling rate
    number_of_channels Number of audio channels
    number_of_frames Number of frames
    fromat Format