Limited availability
Note: This feature is available in Dedicated Web Workers.
The AudioData()
constructor creates a new AudioData
object which represents an individual audio sample.
init
An object containing the following:
format
One of:
sampleRate
A decimal containing the sample rate in Hz.
numberOfFrames
An integer containing the number of frames in this sample.
numberOfChannels
An integer containing the number of channels in this sample.
timestamp
An integer indicating the data's time in microseconds.
data
A typed array of the audio data for this sample.
transfer
An array of ArrayBuffer
s that AudioData
will detach and take ownership of. If the array contains the ArrayBuffer
backing data
, AudioData
will use that buffer directly instead of copying from it.
TypeError
Thrown if init
is in an incorrect format.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4