Reset the resampler's latency when stopped

This commit is contained in:
JasonLG1979 2023-06-24 20:16:21 -05:00
parent f7c56dff44
commit ac2c05a0f8

View file

@ -451,6 +451,8 @@ impl StereoInterleavedResampler {
} }
pub fn stop(&mut self) { pub fn stop(&mut self) {
self.latency_pcm = 0;
match &mut self.resampler { match &mut self.resampler {
// Stop does nothing // Stop does nothing
// if we're bypassed. // if we're bypassed.