convertSamples method
void
convertSamples(])
Converts all samples from inputBuffer
and writes the result to outputBuffer
.
Implementation
void convertSamples(Uint8List inputBuffer, Uint8List outputBuffer, [int inputOffset = 0, int outputOffset = 0]) {
final sampleCount = inputBuffer.length ~/ inputBytes;
for (var i = 0; sampleCount > i; i++) {
convertSample(inputBuffer, outputBuffer, inputOffset, outputOffset);
outputOffset += outputBytes;
inputOffset += inputBytes;
}
}