addAudioChunk method

void addAudioChunk(
  1. Uint8List chunk
)

Function to add an audio chunk to the audio player.

chunk: The audio data to be added to the player, represented as a Uint8List.

Implementation

void addAudioChunk(Uint8List chunk) {
  audioChunkPlayer.feedChunk(chunk); // Feed the audio chunk to the audio player for playback.
}