summaryrefslogtreecommitdiffstats
path: root/src/dabOutput/dabOutput.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-11-22 11:21:02 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-11-22 11:21:02 +0100
commit335c4ffd68329358b469fd119a058dd096abf1cb (patch)
treed7479456f1f8a12a45b05f461f3e8da1c441f572 /src/dabOutput/dabOutput.h
parentfc9d04fcae5a1bb8ffe57ad2b2dd5b0ae42055ae (diff)
downloaddabmux-335c4ffd68329358b469fd119a058dd096abf1cb.tar.gz
dabmux-335c4ffd68329358b469fd119a058dd096abf1cb.tar.bz2
dabmux-335c4ffd68329358b469fd119a058dd096abf1cb.zip
Add params to RAW output for clock selection
Diffstat (limited to 'src/dabOutput/dabOutput.h')
-rw-r--r--src/dabOutput/dabOutput.h30
1 files changed, 5 insertions, 25 deletions
diff --git a/src/dabOutput/dabOutput.h b/src/dabOutput/dabOutput.h
index 2f1fc25..677fffc 100644
--- a/src/dabOutput/dabOutput.h
+++ b/src/dabOutput/dabOutput.h
@@ -2,7 +2,7 @@
Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Her Majesty the Queen in
Right of Canada (Communications Research Center Canada)
- Copyright (C) 2016
+ Copyright (C) 2017
Matthias P. Braendli, matthias.braendli@mpb.li
http://www.opendigitalradio.org
@@ -152,27 +152,6 @@ class DabOutputFifo : public DabOutputFile
class DabOutputRaw : public DabOutput
{
public:
- DabOutputRaw()
- {
- socket_ = -1;
- isCyclades_ = false;
- buffer_ = new unsigned char[6144];
- }
-
- DabOutputRaw(const DabOutputRaw& other)
- {
- socket_ = other.socket_;
- isCyclades_ = other.isCyclades_;
- buffer_ = new unsigned char[6144];
- memcpy(buffer_, other.buffer_, 6144);
- }
-
- ~DabOutputRaw() {
- delete[] buffer_;
- }
-
- const DabOutputRaw operator=(const DabOutputRaw& other) = delete;
-
int Open(const char* name);
int Write(void* buffer, int size);
int Close();
@@ -180,12 +159,13 @@ class DabOutputRaw : public DabOutput
std::string get_info() const {
return "raw://" + filename_;
}
+
virtual void setMetadata(std::shared_ptr<OutputMetadata> &md) {}
+
private:
std::string filename_;
- int socket_;
- bool isCyclades_;
- unsigned char* buffer_;
+ int socket_ = -1;
+ bool isCyclades_ = false;
};
// -------------- UDP ------------------