diff options
Diffstat (limited to 'gui/stmdsp.hpp')
-rw-r--r-- | gui/stmdsp.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/stmdsp.hpp b/gui/stmdsp.hpp index 5dda89c..4551483 100644 --- a/gui/stmdsp.hpp +++ b/gui/stmdsp.hpp @@ -19,7 +19,7 @@ namespace stmdsp { - constexpr unsigned int SAMPLES_MAX = 4000; + constexpr unsigned int SAMPLES_MAX = 3000; class scanner { @@ -55,6 +55,7 @@ namespace stmdsp //std::vector<adcsample_t> sample(unsigned long int count = 1); void continuous_set_buffer_size(unsigned int size); + unsigned int get_buffer_size() const { return m_buffer_size; } void set_sample_rate(unsigned int id); unsigned int get_sample_rate(); void continuous_start(); @@ -73,6 +74,7 @@ namespace stmdsp private: serial::Serial m_serial; + unsigned int m_buffer_size = SAMPLES_MAX; }; } |