UNPKG

mediabunny

Version:

Pure TypeScript media toolkit for reading, writing, and converting media files, directly in the browser.

30 lines 1.21 kB
/*! * Copyright (c) 2026-present, Vanilagy and contributors * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import { Bitstream } from './bitstream.js'; export type AacAudioSpecificConfig = { objectType: number; frequencyIndex: number; sampleRate: number | null; channelConfiguration: number; numberOfChannels: number | null; }; export declare const aacFrequencyTable: number[]; export declare const aacChannelMap: number[]; export declare const parseAacAudioSpecificConfig: (bytes: Uint8Array | null) => AacAudioSpecificConfig; export declare const buildAacAudioSpecificConfig: (config: { objectType: number; sampleRate: number; numberOfChannels: number; }) => Uint8Array<ArrayBuffer>; export type AdtsHeaderTemplate = { header: Uint8Array; bitstream: Bitstream; }; export declare const buildAdtsHeaderTemplate: (config: AacAudioSpecificConfig) => AdtsHeaderTemplate; export declare const writeAdtsFrameLength: (bitstream: Bitstream, frameLength: number) => void; //# sourceMappingURL=aac-misc.d.ts.map