writeToSink

suspend fun AudioFlow.writeToSink(format: AudioFileFormat, sink: Sink)

Collects this flow and writes the PCM data to sink in the chosen file format (WAV, AIFF, or AU).