pub fn pump<S, T>(
source: &mut S,
sink: &mut T,
) -> Result<usize, PumpError<S::Err, T::Err>>where
S: MidiSource,
T: MidiSink,Expand description
Drains every event from source into sink, re-timing events to the sink’s
resolution, and returns the number of events transferred.
Mismatched resolutions are reconciled by TickTime::quantize; the sink is
flushed once the source is exhausted. Errors are wrapped in PumpError to
record which side failed.