Commit a7550317 authored by Stefan Westerfeld's avatar Stefan Westerfeld

Make RawConverter destructor virtual (fix clang++ warning).

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 14f1be35
...@@ -21,6 +21,10 @@ ...@@ -21,6 +21,10 @@
using std::vector; using std::vector;
RawConverter::~RawConverter()
{
}
template<int BIT_DEPTH, RawFormat::Endian ENDIAN, RawFormat::Encoding ENCODING> template<int BIT_DEPTH, RawFormat::Endian ENDIAN, RawFormat::Encoding ENCODING>
class RawConverterImpl : public RawConverter class RawConverterImpl : public RawConverter
{ {
......
...@@ -25,6 +25,8 @@ class RawConverter ...@@ -25,6 +25,8 @@ class RawConverter
public: public:
static RawConverter *create (const RawFormat& raw_format, Error& error); static RawConverter *create (const RawFormat& raw_format, Error& error);
virtual ~RawConverter() = 0;
virtual void to_raw (const std::vector<float>& samples, std::vector<unsigned char>& bytes) = 0; virtual void to_raw (const std::vector<float>& samples, std::vector<unsigned char>& bytes) = 0;
virtual void from_raw (const std::vector<unsigned char>& bytes, std::vector<float>& samples) = 0; virtual void from_raw (const std::vector<unsigned char>& bytes, std::vector<float>& samples) = 0;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment