Manually write the async generators so that return() is immediate

This commit is contained in:
Vanilagy
2025-01-02 15:24:38 +01:00
parent 7c5e31a93a
commit 4bef3b6722
4 changed files with 262 additions and 180 deletions
-12
View File
@@ -1021,18 +1021,6 @@ export class IsobmffDemuxer extends Demuxer {
const track = this.currentTrack;
assert(track && track.info?.type === 'audio');
// TODO TEMP
/*
const bytes = this.isobmffReader.readBytes(boxInfo.contentSize);
const description2 = new Uint8Array(8 + bytes.byteLength);
const view2 = new DataView(description2.buffer);
view2.setUint32(0, 0x4f707573, false); // 'Opus'
view2.setUint32(4, 0x646f7073, false); // 'dOps'
description2.set(bytes, 8);
track.info.codecDescription = description2;
break;
*/
this.isobmffReader.pos += 1; // Version
// https://www.opus-codec.org/docs/opus_in_isobmff.html