diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2015-09-11 22:13:50 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2015-09-16 11:22:16 +1000 |
commit | b2a73935531fc1e0bab0fef8d8ce7868589af8c1 (patch) | |
tree | 3ceb3704e0176fb3ebc377862f96f94f7e74e27f /libs/ardour/ardour/dsp_load_calculator.h | |
parent | a974659504b5d0797e62d2d115812be17a1ea5a0 (diff) |
Change types in DSPLoadCalculator to signed integer after change in utils::get_microsecond
Diffstat (limited to 'libs/ardour/ardour/dsp_load_calculator.h')
-rw-r--r-- | libs/ardour/ardour/dsp_load_calculator.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/ardour/ardour/dsp_load_calculator.h b/libs/ardour/ardour/dsp_load_calculator.h index b1944cc27e..6e1ac25cb0 100644 --- a/libs/ardour/ardour/dsp_load_calculator.h +++ b/libs/ardour/ardour/dsp_load_calculator.h @@ -56,16 +56,16 @@ public: } - uint64_t get_max_time_us() const { return m_max_time_us; } + int64_t get_max_time_us() const { return m_max_time_us; } - void set_start_timestamp_us(uint64_t start_timestamp_us) + void set_start_timestamp_us(int64_t start_timestamp_us) { m_start_timestamp_us = start_timestamp_us; } - void set_stop_timestamp_us(uint64_t stop_timestamp_us); + void set_stop_timestamp_us(int64_t stop_timestamp_us); - uint64_t elapsed_time_us() + int64_t elapsed_time_us() { return m_stop_timestamp_us - m_start_timestamp_us; } @@ -89,9 +89,9 @@ private: // methods static uint32_t max_value_history () { return 16; } private: // data - uint64_t m_max_time_us; - uint64_t m_start_timestamp_us; - uint64_t m_stop_timestamp_us; + int64_t m_max_time_us; + int64_t m_start_timestamp_us; + int64_t m_stop_timestamp_us; float m_dsp_load; RingBuffer<float> m_value_history; uint32_t m_num_values; |