pub fn pump_pcm(
source: &mut impl PcmSource,
sink: &mut impl PcmSink,
) -> Result<PcmPumpSummary>Expand description
Drains source into sink, then flushes the sink.
Reads every buffer from source and writes it to sink, returning a
PcmPumpSummary of the transfer. Returns an error when the source and
sink specs differ or when any write fails.