getSampleWriter method
Returns a closure that reads samples of the given format
from this
buffer. Calling these closures advances the read head of this buffer.
Implementation
SampleWriter getSampleWriter(WavFormat format) => [
_writeSample8Bit,
_writeSample16Bit,
_writeSample24Bit,
_writeSample32Bit,
_writeSampleFloat32,
_writeSampleFloat64,
][format.index];