Skip to content

Commit

Permalink
make it work
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyBurger committed Sep 1, 2024
1 parent e91a137 commit c6f9fca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/webcodecs/src/audio-decoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c6f9fca

Please sign in to comment.