aboutsummaryrefslogtreecommitdiffstats
path: root/Dummy_Settings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Dummy_Settings.cpp')
-rw-r--r--Dummy_Settings.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Dummy_Settings.cpp b/Dummy_Settings.cpp
index 85dc056..d449329 100644
--- a/Dummy_Settings.cpp
+++ b/Dummy_Settings.cpp
@@ -26,6 +26,7 @@
SoapyDummy::SoapyDummy( const SoapySDR::Kwargs &args )
+ : m_circ_buffer(1000000)
{
// On startup, initialise our epoch to current time, so that
// it appears the counter just started counting
@@ -272,6 +273,9 @@ SoapySDR::RangeList SoapyDummy::getFrequencyRange( const int direction, const si
void SoapyDummy::setSampleRate( const int direction, const size_t channel, const double rate )
{
m_samplerate = rate;
+
+ // ticks are in nanoseconds
+ m_circ_buffer.set_ticks_per_sample(std::lrint(1e9 / rate));
}
double SoapyDummy::getSampleRate( const int direction, const size_t channel ) const