toWave method

Implementation

Future<InputBufferNode> toWave() async {
  var pcmCodec = codec as Pcm;
  var buffer = await tauHelper.pcmToWaveBuffer(
      inputBuffer: inputBuffer, codec: pcmCodec);
  return InputBufferNode(buffer,
      codec: Pcm(AudioFormat.wav,
          sampleRate: pcmCodec.sampleRate,
          nbChannels: pcmCodec.nbChannels,
          endianness: pcmCodec.endianness,
          depth: pcmCodec.depth));
}