Add @mediabunny/aac-encoder extension package

This commit is contained in:
Vanilagy
2026-03-04 17:05:34 +01:00
parent 76e0703b13
commit c4398fb88c
51 changed files with 1976 additions and 274 deletions
+1 -1
View File
@@ -15,7 +15,6 @@ import {
assert,
AsyncMutex,
binarySearchLessOrEqual,
Bitstream,
textDecoder,
UNDETERMINED_LANGUAGE,
} from '../misc';
@@ -37,6 +36,7 @@ import {
readSampleRate,
getSampleRateOrUncommon,
} from './flac-misc';
import { Bitstream } from '../../shared/bitstream';
type FlacAudioInfo = {
numberOfChannels: number;
+2 -1
View File
@@ -6,7 +6,8 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { assert, assertNever, Bitstream } from '../misc';
import { Bitstream } from '../../shared/bitstream';
import { assert, assertNever } from '../misc';
import { FileSlice, readBytes, readU16Be, readU8 } from '../reader';
type BlockSizeOrUncommon = number | 'uncommon-u16' | 'uncommon-u8';
+1 -1
View File
@@ -10,7 +10,6 @@ import { validateAudioChunkMetadata } from '../codec';
import { createVorbisComments, FlacBlockType } from '../codec-data';
import {
assert,
Bitstream,
textEncoder,
toDataView,
toUint8Array,
@@ -27,6 +26,7 @@ import {
getBlockSizeOrUncommon,
readCodedNumber,
} from './flac-misc';
import { Bitstream } from '../../shared/bitstream';
const FLAC_HEADER = /* #__PURE__ */ new Uint8Array([0x66, 0x4c, 0x61, 0x43]); // 'fLaC'
const STREAMINFO_SIZE = 38;