Clear buffer when the sink is stopped

This commit is contained in:
sniperrifle2004 2020-06-14 05:52:16 +02:00
parent 64081a12bb
commit cbe3c98fa1

View file

@ -111,6 +111,7 @@ impl Sink for AlsaSink {
pcm.drain().unwrap();
}
self.pcm = None;
self.buffered_data = 0;
Ok(())
}