diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2015-09-11 22:29:52 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2015-09-16 11:22:16 +1000 |
commit | cf88bbc472cb7b62c326b955dff1b962b0d02fee (patch) | |
tree | bf1fa3bb5723e8d4b077d8cb267b1227d006b0e0 /libs/ardour/ardour/dsp_load_calculator.h | |
parent | b2a73935531fc1e0bab0fef8d8ce7868589af8c1 (diff) |
Add check for invalid timer values from the DummyBackend
Needed for systems where the Windows QPC timer returns erratic values
Diffstat (limited to 'libs/ardour/ardour/dsp_load_calculator.h')
-rw-r--r-- | libs/ardour/ardour/dsp_load_calculator.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/ardour/dsp_load_calculator.h b/libs/ardour/ardour/dsp_load_calculator.h index 6e1ac25cb0..f3c5fea227 100644 --- a/libs/ardour/ardour/dsp_load_calculator.h +++ b/libs/ardour/ardour/dsp_load_calculator.h @@ -88,6 +88,8 @@ public: private: // methods static uint32_t max_value_history () { return 16; } + int64_t max_timer_error () { return 4 * m_max_time_us; } + private: // data int64_t m_max_time_us; int64_t m_start_timestamp_us; |