update reported DSP load for ALSA & Dummy
authorRobin Gareus <robin@gareus.org>
Wed, 16 Sep 2015 15:45:16 +0000 (17:45 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 16 Sep 2015 16:24:57 +0000 (18:24 +0200)
libs/backends/alsa/alsa_audiobackend.cc
libs/backends/dummy/dummy_audiobackend.cc

index 2724b66e01fc14d53c35f2ef6548a9b0cea473de..99b80f17d511d4e1ad5a3c885ade61f585c086d1 100644 (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
index f43d51251368292917d21a0ef2bb9e73ed1eec91..2245f17e6cd92cea3474f9f521a36cd6c45d0538 100644 (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 ();