summaryrefslogtreecommitdiffstats
path: root/src/output/SDR.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-07 10:58:29 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-07 10:58:29 +0100
commit39a70386994b1ab8876bd020d3755ce609903c48 (patch)
tree0d612e39420350f46f1a7b9435255ed4461a58c6 /src/output/SDR.h
parentb92491d93d7759fefdc96552f5319d7a38e47895 (diff)
downloaddabmod-39a70386994b1ab8876bd020d3755ce609903c48.tar.gz
dabmod-39a70386994b1ab8876bd020d3755ce609903c48.tar.bz2
dabmod-39a70386994b1ab8876bd020d3755ce609903c48.zip
Add metadata to SDR output
Diffstat (limited to 'src/output/SDR.h')
-rw-r--r--src/output/SDR.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/output/SDR.h b/src/output/SDR.h
index d3693da..ea787c3 100644
--- a/src/output/SDR.h
+++ b/src/output/SDR.h
@@ -2,7 +2,7 @@
Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Her Majesty the
Queen in Right of Canada (Communications Research Center Canada)
- Copyright (C) 2017
+ Copyright (C) 2018
Matthias P. Braendli, matthias.braendli@mpb.li
http://opendigitalradio.org
@@ -43,7 +43,7 @@ namespace Output {
using complexf = std::complex<float>;
-class SDR : public ModOutput, public RemoteControllable {
+class SDR : public ModOutput, public ModMetadata, public RemoteControllable {
public:
SDR(SDRDeviceConfig& config, std::shared_ptr<SDRDevice> device);
SDR(const SDR& other) = delete;
@@ -51,6 +51,7 @@ class SDR : public ModOutput, public RemoteControllable {
~SDR();
virtual int process(Buffer *dataIn) override;
+ virtual meta_vec_t process_metadata(const meta_vec_t& metadataIn) override;
virtual const char* name() override;
@@ -76,6 +77,7 @@ class SDR : public ModOutput, public RemoteControllable {
std::atomic<bool> m_running;
std::thread m_device_thread;
+ std::vector<uint8_t> m_frame;
ThreadsafeQueue<FrameData> m_queue;
std::shared_ptr<SDRDevice> m_device;