Returns the Float32Array representing the PCM audio data for the specific channel.
Method of apis/webaudio/AudioBufferapis/webaudio/AudioBuffer
Syntaxvar = AudioBuffer.getChannelData(channel);
Parameters channel
The channel parameter is an index representing the particular channel to get data for. An index value of 0 represents the first channel. This index value MUST be less than numberOfChannels or an exception will be thrown.
Return ValueReturns an object of type
Float32Array
Examplesvar myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate);
var nowBuffering = myArrayBuffer.getChannelData(channel);
Related specifications
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