Package im.zego.zegoexpress.callback
Class IZegoAudioMixingHandler
- java.lang.Object
-
- im.zego.zegoexpress.callback.IZegoAudioMixingHandler
-
public abstract class IZegoAudioMixingHandler extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description IZegoAudioMixingHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZegoAudioMixingData
onAudioMixingCopyData(int expectedDataLength)
Audio mixing callback.
-
-
-
Method Detail
-
onAudioMixingCopyData
public ZegoAudioMixingData onAudioMixingCopyData(int expectedDataLength)
Audio mixing callback. Available since: 1.9.0 Description: The callback for copying audio data to the SDK for audio mixing. This function should be used together with [enableAudioMixing]. Use cases: Developers can use this function when they need to mix their own songs, sound effects or other audio data into the publishing stream. When to trigger: It will triggered after [createEngine], and call [enableAudioMixing] turn on audio mixing, and call [setAudioMixingHandler] set audio mixing callback handler. Restrictions: Supports 16k 32k 44.1k 48k sample rate, mono or dual channel, 16-bit deep PCM audio data. Caution: This callback is a high frequency callback. To ensure the quality of the mixing data, please do not handle time-consuming operations in this callback.- Parameters:
expectedDataLength
- Expected length of incoming audio mixing data.- Returns:
- The audio data provided by the developer that is expected to be mixed into the publishing stream.
-
-