Don't pad the alsa buffer anymore on stop.

It's no longer necessary with the SymphoniaDecoder, in fact it causes the problem it used to prevent. Namely pops when you pause.
This commit is contained in:
JasonLG1979 2023-06-24 22:36:33 -05:00
parent ac2c05a0f8
commit 528a8a431e

View file

@ -246,9 +246,6 @@ impl Sink for AlsaSink {
}
fn stop(&mut self) -> SinkResult<()> {
// Zero fill the remainder of the period buffer and
// write any leftover data before draining the actual PCM buffer.
self.period_buffer.resize(self.period_buffer.capacity(), 0);
self.write_buf()?;
if let Some(pcm) = self.pcm.take() {