onFrame

Callback for received audio frame.

final void Function(AudioPcmFrame frame)? onFrame;

After registering the audio data observer, this callback is triggered each time an audio frame is received to report audio frame information.

Parameters

frame
Audio frame information. See AudioPcmFrame.