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
- allocation
Size (options): number Parameters
- options: AudioDataCopyToOptions
Returns number
clone
close
copyTo
- copy
To (destination, options): void Parameters
- destination: AllowSharedBufferSource
- options: AudioDataCopyToOptions
Returns void