diff --git a/packages/webcodecs/src/audio-decoder.ts b/packages/webcodecs/src/audio-decoder.ts index a0a724fa210..dad210d22ac 100644 --- a/packages/webcodecs/src/audio-decoder.ts +++ b/packages/webcodecs/src/audio-decoder.ts @@ -38,9 +38,7 @@ export const createAudioDecoder = async ({ await decoderWaitForDequeue(audioDecoder); - if (audioSample.type === 'key') { - await audioDecoder.flush(); - } + // Don't flush, it messes up the audio const chunk = new EncodedAudioChunk(audioSample); audioDecoder.decode(chunk);