summaryrefslogtreecommitdiffstats
path: root/src/input/inputs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/inputs.h')
-rw-r--r--src/input/inputs.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/input/inputs.h b/src/input/inputs.h
index bfb1fb6..b823998 100644
--- a/src/input/inputs.h
+++ b/src/input/inputs.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) 2019
Matthias P. Braendli, matthias.braendli@mpb.li
http://www.opendigitalradio.org
@@ -38,7 +38,9 @@ namespace Inputs {
/* New input object base */
class InputBase {
public:
- virtual int open(const std::string& name) = 0;
+ /* Throws runtime_error or invalid_argument on failure */
+ virtual void open(const std::string& name) = 0;
+
virtual int readFrame(uint8_t* buffer, size_t size) = 0;
virtual int setBitrate(int bitrate) = 0;
virtual int close() = 0;