onFrame method

FutureOr<void> onFrame(
  1. int playerId,
  2. IAudioFrame frame
)

@detail callback @brief The callback for the audio frames during local audio file mixing. @param playerId Player's ID. @param frame See IAudioFrame{@link #IAudioFrame}.

Implementation

FutureOr<void> onFrame(int playerId, IAudioFrame frame) async {}