Interface AudioData
interface AudioData {
duration: number;
format: AudioSampleFormat;
numberOfChannels: number;
numberOfFrames: number;
sampleRate: number;
timestamp: number;
allocationSize(options: AudioDataCopyToOptions): number;
clone(): AudioData;
close(): void;
copyTo(
destination: AllowSharedBufferSource,
options: AudioDataCopyToOptions,
): void;
}
duration: number;
format: AudioSampleFormat;
numberOfChannels: number;
numberOfFrames: number;
sampleRate: number;
timestamp: number;
allocationSize(options: AudioDataCopyToOptions): number;
clone(): AudioData;
close(): void;
copyTo(
destination: AllowSharedBufferSource,
options: AudioDataCopyToOptions,
): void;
}
Index
Properties
Methods
Properties
Readonly
duration
duration: number
Readonly
format
Readonly
numberOfChannels
numberOfChannels: number
Readonly
numberOfFrames
numberOfFrames: number
Readonly
sampleRate
sampleRate: number
Readonly
timestamp
timestamp: number
Methods
allocationSize
- allocationSize(options: AudioDataCopyToOptions): number
Parameters
- options: AudioDataCopyToOptions
Returns number
clone
close
copyTo
- copyTo(
destination: AllowSharedBufferSource,
options: AudioDataCopyToOptions,
): void Parameters
- destination: AllowSharedBufferSource
- options: AudioDataCopyToOptions
Returns void
MDN Reference