Skip to content
Snippets Groups Projects
Commit 7ca9b54c authored by Tristan Matthews's avatar Tristan Matthews Committed by Emmanuel Milou
Browse files

audiocodec: ensure that empty methods aren't called

Refs #49181

Change-Id: Ic98a724ec7ea6db32d0cb4e08fcd48defa1f80cf
parent ed331965
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
*/ */
#include "audiocodec.h" #include "audiocodec.h"
#include <cassert>
using std::ptrdiff_t; using std::ptrdiff_t;
namespace sfl { namespace sfl {
...@@ -61,11 +62,15 @@ AudioCodec::AudioCodec(const AudioCodec& c) : ...@@ -61,11 +62,15 @@ AudioCodec::AudioCodec(const AudioCodec& c) :
int AudioCodec::decode(SFLAudioSample *, unsigned char *, size_t) int AudioCodec::decode(SFLAudioSample *, unsigned char *, size_t)
{ {
// Unimplemented!
assert(false);
return 0; return 0;
} }
int AudioCodec::encode(unsigned char *, SFLAudioSample *, size_t) int AudioCodec::encode(unsigned char *, SFLAudioSample *, size_t)
{ {
// Unimplemented!
assert(false);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment