Reset DSP load on backend re-start and after freewheeling

This commit is contained in:
Robin Gareus 2020-03-30 16:58:55 +02:00
parent 27b2794133
commit a8ff35accb
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
4 changed files with 13 additions and 0 deletions

View file

@ -1412,6 +1412,7 @@ PulseAudioBackend::main_process_thread ()
}
}
_dsp_load_calc.reset ();
stream_latency_update_cb (p_stream, this);
while (_run) {
@ -1436,6 +1437,7 @@ PulseAudioBackend::main_process_thread ()
if (!sync_pulse (pa_stream_flush (p_stream, stream_operation_cb, this)) || !_operation_succeeded) {
break;
}
_dsp_load_calc.reset ();
}
}