pause method

Future<void> pause()

Suspends the audio thread. The worker needs no telling: with nothing consuming, the ring fills and its pump blocks on backpressure.

Implementation

Future<void> pause() async {
  _paused = true;
  await _sink.suspend();
}