Make MediaSource.close return void

This commit is contained in:
Vanilagy
2025-06-04 15:39:36 +02:00
parent e45ea24f03
commit 6f020650cc
4 changed files with 11 additions and 11 deletions
@@ -128,13 +128,13 @@ const generateVideo = async () => {
}
// Signal to the output that no more video frames are coming (not necessary, but recommended)
void canvasSource.close();
canvasSource.close();
// Let's render the audio. Ideally, the audio is rendered before the video (or concurrently to it), but for
// simplicity, we're rendering it after we've cranked through all frames.
const audioBuffer = await offlineAudioContext.startRendering();
await audioBufferSource.add(audioBuffer);
void audioBufferSource.close();
audioBufferSource.close();
clearInterval(progressInterval);