aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/SDR.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2023-03-24 10:31:24 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2023-03-24 10:31:24 +0100
commited8e8bed00d5ad47a9d4798059fd0e3a8c3f7b8c (patch)
tree1ad0ca394f2be41b1098c971906298c790617751 /src/output/SDR.cpp
parent4b3465e0a9e79f18398819f3bd0957efc9952928 (diff)
downloaddabmod-ed8e8bed00d5ad47a9d4798059fd0e3a8c3f7b8c.tar.gz
dabmod-ed8e8bed00d5ad47a9d4798059fd0e3a8c3f7b8c.tar.bz2
dabmod-ed8e8bed00d5ad47a9d4798059fd0e3a8c3f7b8c.zip
Fix startup hiccup due to iio buffer allocation taking several seconds
Diffstat (limited to 'src/output/SDR.cpp')
-rw-r--r--src/output/SDR.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output/SDR.cpp b/src/output/SDR.cpp
index e22617e..f53197e 100644
--- a/src/output/SDR.cpp
+++ b/src/output/SDR.cpp
@@ -165,7 +165,7 @@ meta_vec_t SDR::process_metadata(const meta_vec_t& metadataIn)
const auto max_size = m_config.enableSync ?
- (frame.ts.timestamp_offset * 4.0) / frame_duration_s
+ (frame.ts.timestamp_offset * 400.0) / frame_duration_s
: FRAMES_MAX_SIZE;
auto r = m_queue.push_overflow(std::move(frame), max_size);