AudioData
The AudioData interface of the WebCodecs API represents an audio sample.
Properties
The format read-only property of the AudioData interface returns the sample format of the AudioData object.
The numberOfChannels read-only property of the AudioData interface returns the number of channels in the AudioData object.
The numberOfFrames read-only property of the AudioData interface returns the number of frames in the AudioData object.
The sampleRate read-only property of the AudioData interface returns the sample rate in Hz.
Functions
The allocationSize() method of the AudioData interface returns the size in bytes required to hold the current sample as filtered by options passed into the method.
The copyTo() method of the AudioData interface copies a plane of an AudioData object to a destination buffer.