pause method
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();
}
Suspends the audio thread. The worker needs no telling: with nothing consuming, the ring fills and its pump blocks on backpressure.
Future<void> pause() async {
_paused = true;
await _sink.suspend();
}