diff options
Diffstat (limited to 'src/FormatConverter.h')
-rw-r--r-- | src/FormatConverter.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/FormatConverter.h b/src/FormatConverter.h index cc8a606..05511c0 100644 --- a/src/FormatConverter.h +++ b/src/FormatConverter.h @@ -2,7 +2,7 @@ Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Her Majesty the Queen in Right of Canada (Communications Research Center Canada) - Copyright (C) 2017 + Copyright (C) 2022 Matthias P. Braendli, matthias.braendli@mpb.li http://opendigitalradio.org @@ -34,19 +34,27 @@ #include "ModPlugin.h" #include <complex> +#include <atomic> #include <string> #include <cstdint> class FormatConverter : public ModCodec { public: + static size_t get_format_size(const std::string& format); + + // Allowed formats: s8, u8 and s16 FormatConverter(const std::string& format); int process(Buffer* const dataIn, Buffer* dataOut); const char* name(); + size_t get_num_clipped_samples() const; + private: std::string m_format; + + std::atomic<size_t> m_num_clipped_samples = 0; }; |