aboutsummaryrefslogtreecommitdiffstats
path: root/gui/stmdsp.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2021-01-22 21:41:11 -0500
committerClyne Sullivan <clyne@bitgloo.com>2021-01-22 21:41:11 -0500
commite080a26651f90c88176140d63a74c93c2f4041a2 (patch)
tree801a9726341a123e479516f94d564a3cade0cb91 /gui/stmdsp.cpp
parent04e23e9ad7cce2da3c6d1076f06d2064acd837c6 (diff)
add SampleBuffer and ErrorManager; WAV testing
Diffstat (limited to 'gui/stmdsp.cpp')
-rw-r--r--gui/stmdsp.cpp18
1 files changed, 2 insertions, 16 deletions
diff --git a/gui/stmdsp.cpp b/gui/stmdsp.cpp
index 9119284..897e643 100644
--- a/gui/stmdsp.cpp
+++ b/gui/stmdsp.cpp
@@ -36,24 +36,10 @@ namespace stmdsp
}
}
- /*std::vector<adcsample_t> device::sample(unsigned long int count) {
- if (connected()) {
- uint8_t request[3] = {
- 'd',
- static_cast<uint8_t>(count),
- static_cast<uint8_t>(count >> 8)
- };
- m_serial.write(request, 3);
- std::vector<adcsample_t> data (count);
- m_serial.read(reinterpret_cast<uint8_t *>(data.data()), data.size() * sizeof(adcsample_t));
- return data;
- } else {
- return {};
- }
- }*/
-
void device::continuous_set_buffer_size(unsigned int size) {
if (connected()) {
+ m_buffer_size = size;
+
uint8_t request[3] = {
'B',
static_cast<uint8_t>(size),