update reported DSP load for ALSA & Dummy

This commit is contained in:
Robin Gareus 2015-09-16 17:45:16 +02:00
parent 1c43383e92
commit 1691e965a5
2 changed files with 2 additions and 2 deletions

View File

@ -899,7 +899,7 @@ AlsaAudioBackend::freewheel (bool onoff)
float
AlsaAudioBackend::dsp_load () const
{
return std::min(100.f, 100.f * _dsp_load);
return 100.f * _dsp_load;
}
size_t

View File

@ -1268,7 +1268,7 @@ DummyAudioBackend::main_process_thread ()
if (!_freewheel) {
_dsp_load_calc.set_start_timestamp_us (clock1);
_dsp_load_calc.set_stop_timestamp_us (_x_get_monotonic_usec());
_dsp_load = _dsp_load_calc.get_dsp_load ();
_dsp_load = _dsp_load_calc.get_dsp_load_unbound ();
const int64_t elapsed_time = _dsp_load_calc.elapsed_time_us ();
const int64_t nominal_time = _dsp_load_calc.get_max_time_us ();