aboutsummaryrefslogtreecommitdiffstats
path: root/SoapyDummy.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'SoapyDummy.hpp')
-rw-r--r--SoapyDummy.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/SoapyDummy.hpp b/SoapyDummy.hpp
index 7f08a89..1ae412e 100644
--- a/SoapyDummy.hpp
+++ b/SoapyDummy.hpp
@@ -29,6 +29,7 @@
#include <condition_variable>
#include <SoapySDR/Device.hpp>
#include <SoapySDR/Logger.hpp>
+#include "CircBufferTimestamp.hpp"
class SoapyDummySession
{
@@ -178,9 +179,8 @@ class SoapyDummy : public SoapySDR::Device
private:
struct DummyStream {
- size_t mtu = 1024;
- size_t buf_num = 1;
- std::complex<float> buf[1024];
+ const size_t mtu = 1024;
+ bool active = false;
};
DummyStream m_rxstream;
@@ -188,6 +188,8 @@ class SoapyDummy : public SoapySDR::Device
SoapySDR::Stream* const TX_STREAM = (SoapySDR::Stream*) 0x1;
SoapySDR::Stream* const RX_STREAM = (SoapySDR::Stream*) 0x2;
+ CircularBuffer<std::complex<float> > m_circ_buffer;
+
SoapyDummySession m_session;
double m_samplerate = 0;
double m_frequency = 0;