Methods
deinterleaveStereoData(stereo, leftOut, rightOut, numFrames, stride)
Deinterleave the given stereo data into separate left and right channels.
Parameters:
Name | Type | Description |
---|---|---|
stereo |
Array | the stereo floating point, interleaved data |
leftOut |
Array | the left output buffer (floating point) |
rightOut |
Array | the right output buffer (floating point) |
numFrames |
Integer | number of frames in the *output* data |
stride |
Integer | stride or interval as to how the output channels are populated, used for up-sampling (eg 2 would write every sample in the stereo buffer to every 2 samples in the output buffer) |
interleaveStereoData(left, right, stereoOut, numFrames, stride)
Interleave the given left and right channel data as stereo interleaved.
Parameters:
Name | Type | Description |
---|---|---|
left |
Array | the left channel floating point data |
right |
Array | the right channel floating point data |
stereoOut |
Array | the stereo output interleaved buffer (floating point) |
numFrames |
Integer | number of frames in the *input* data |
stride |
Integer | stride or interval to sample in the input data used for down-sampling (eg 2 would take every other sample) |
noiseGateProcess(buffer, numFrames, numChannels)
Perform the NoiseGate process on the given audio buffer per the current NoiseGate settings.
Parameters:
Name | Type | Description |
---|---|---|
buffer |
Array | the audio data, interleaved, float |
numFrames |
Integer | number of frames in buffer |
numChannels |
any | number of channels in buffer |
processBuffer(buffer, numFrames, numChannels)
Perform MDPS processing on the given input buffer per the current settings.
Parameters:
Name | Type | Description |
---|---|---|
buffer |
Array | the floating point data |
numFrames |
Integer | number of frames |
numChannels |
Integer | number of channels |
scaleBuffer(buffer, numFrames, stride, scale)
Scale the given audio data according to the scale factor.
Parameters:
Name | Type | Description |
---|---|---|
buffer |
Array | the floating point data |
numFrames |
Integer | number of frames |
stride |
Integer | stride or interval at which to sample the buffer |
scale |
Float | scale factor to apply to the audio data (0 - 1) |