From e080a26651f90c88176140d63a74c93c2f4041a2 Mon Sep 17 00:00:00 2001
From: Clyne Sullivan <clyne@bitgloo.com>
Date: Fri, 22 Jan 2021 21:41:11 -0500
Subject: add SampleBuffer and ErrorManager; WAV testing

---
 gui/stmdsp.hpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'gui/stmdsp.hpp')

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;
     };
 }
 
-- 
cgit v1.2.3