Implement Ogg muxer

This commit is contained in:
Vanilagy
2025-02-09 10:56:54 +01:00
parent cd30c9faec
commit 0db871dd21
13 changed files with 715 additions and 204 deletions
+4
View File
@@ -100,6 +100,8 @@ export class WaveMuxer extends Muxer {
}
async finalize() {
const release = await this.mutex.acquire();
const endPos = this.writer.getPos();
// Write file size
@@ -111,5 +113,7 @@ export class WaveMuxer extends Muxer {
this.riffWriter.writeU32(this.dataSize);
this.writer.seek(endPos);
release();
}
}