Files
2022-12-22 20:22:22 +11:00

23 lines
687 B
TypeScript

/// <reference types="node" />
import * as iff from '../iff';
import { IGetToken } from "strtok3";
/**
* The Common Chunk.
* Describes fundamental parameters of the waveform data such as sample rate, bit resolution, and how many channels of
* digital audio are stored in the FORM AIFF.
*/
export interface ICommon {
numChannels: number;
numSampleFrames: number;
sampleSize: number;
sampleRate: number;
compressionType?: string;
compressionName?: string;
}
export declare class Common implements IGetToken<ICommon> {
private isAifc;
len: number;
constructor(header: iff.IChunkHeader, isAifc: boolean);
get(buf: Buffer, off: number): ICommon;
}