A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/apis/webaudio/AudioBuffer/getChannelData below:

getChannelData · WebPlatform Docs

getChannelData Summary

Returns the Float32Array representing the PCM audio data for the specific channel.

Method of apis/webaudio/AudioBufferapis/webaudio/AudioBuffer

Syntax
var  = AudioBuffer.getChannelData(channel);
Parameters channel
Data-type
unsigned long

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 Value

Returns an object of type

Float32Array

Examples
var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate);
var nowBuffering = myArrayBuffer.getChannelData(channel);
Related specifications
Web Audio API
W3C Editor’s Draft

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