mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-30 12:23:52 +02:00
Implement Ogg muxer
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user