mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 19:03:46 +02:00
Add AppendOnlyStreamSource, adjust examples to use it
This commit is contained in:
@@ -54,11 +54,7 @@ export class FlacMuxer extends Muxer {
|
||||
async start() {
|
||||
const release = await this.mutex.acquire();
|
||||
|
||||
this.writer = await this.output._getRootWriter();
|
||||
if (this.format._options.appendOnly) {
|
||||
this.writer.ensureMonotonicity();
|
||||
}
|
||||
|
||||
this.writer = await this.output._getRootWriter(!!this.format._options.appendOnly);
|
||||
this.writer.write(FLAC_HEADER);
|
||||
|
||||
release();
|
||||
|
||||
Reference in New Issue
Block a user