Start work on HlsOutputFormat

This commit is contained in:
Vanilagy
2026-03-17 15:25:06 +01:00
parent e42fc85f19
commit dd8621b6d5
17 changed files with 619 additions and 72 deletions
+6 -2
View File
@@ -33,7 +33,7 @@ const STREAMINFO_SIZE = 38;
const STREAMINFO_BLOCK_SIZE = 34;
export class FlacMuxer extends Muxer {
private writer: Writer;
private writer!: Writer;
private metadataWritten = false;
private blockSizes: number[] = [];
@@ -48,12 +48,16 @@ export class FlacMuxer extends Muxer {
constructor(output: Output, format: FlacOutputFormat) {
super(output);
this.writer = output._writer;
this.format = format;
}
async start() {
const release = await this.mutex.acquire();
this.writer = await this.output._getRootWriter();
this.writer.write(FLAC_HEADER);
release();
}
writeHeader({