waveToPCMBuffer method Null safety

Uint8List waveToPCMBuffer(
  1. {required Uint8List inputBuffer}
)

Convert a WAVE buffer to a Raw PCM buffer.

Remove WAVE header in front of the Wave buffer.

Note that this verb is not asynchronous and does not return a Future.

Implementation

Uint8List waveToPCMBuffer({
  required Uint8List inputBuffer,
}) {
  return inputBuffer.sublist(WaveHeader.headerLength);
}