IAudioPcmFrameSink
onFrame
Occurs each time the player receives an audio frame.
AudioFrame onFrame(AudioFrame frame);
After registering the audio frame observer, the callback occurs every time the player receives an audio frame, reporting the detailed information of the audio frame.
Parameters
- frame
- The audio frame information. See AudioFrame.
Returns
Passes in the audio data after setting the mode parameter in registerAudioFrameObserver [2/2] for handling audio data.