mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Reset the resampler's latency when stopped
This commit is contained in:
parent
f7c56dff44
commit
ac2c05a0f8
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue