onFrame property

void Function(AudioPcmFrame frame)? onFrame
final

Callback for received audio frame.

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

  • frame Audio frame information. See AudioPcmFrame.

Implementation

final void Function(AudioPcmFrame frame)? onFrame;