Migrate all codec data parsing logic into new file

This commit is contained in:
Vanilagy
2025-05-12 15:09:04 +02:00
parent b0a6cf8535
commit fd159ecce3
10 changed files with 600 additions and 593 deletions
+2 -2
View File
@@ -1,4 +1,5 @@
import { OPUS_INTERNAL_SAMPLE_RATE, parseOpusIdentificationHeader, validateAudioChunkMetadata } from '../codec';
import { OPUS_INTERNAL_SAMPLE_RATE, validateAudioChunkMetadata } from '../codec';
import { parseModesFromVorbisSetupPacket, parseOpusIdentificationHeader } from '../codec-data';
import { assert, setInt64, toDataView, toUint8Array } from '../misc';
import { Muxer } from '../muxer';
import { Output, OutputAudioTrack } from '../output';
@@ -10,7 +11,6 @@ import {
extractSampleMetadata,
OggCodecInfo,
OGGS,
parseModesFromVorbisSetupPacket,
} from './ogg-misc';
import { MAX_PAGE_SIZE } from './ogg-reader';