Skip to content
Snippets Groups Projects
Commit 08bf2394 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #9979: codecs: fixed unused variable warnings

parent 0768eb23
Branches
Tags
No related merge requests found
...@@ -57,7 +57,7 @@ class G722 : public sfl::AudioCodec { ...@@ -57,7 +57,7 @@ class G722 : public sfl::AudioCodec {
return g722_decode(dst, src, buf_size); return g722_decode(dst, src, buf_size);
} }
virtual int encode(unsigned char *dst, SFLDataFormat *src, size_t buf_size) virtual int encode(unsigned char *dst, SFLDataFormat *src, size_t /*buf_size*/)
{ {
int out = g722_encode(dst, src, frameSize_); int out = g722_encode(dst, src, frameSize_);
return out; return out;
......
...@@ -67,7 +67,7 @@ class Gsm : public sfl::AudioCodec { ...@@ -67,7 +67,7 @@ class Gsm : public sfl::AudioCodec {
gsm_destroy(encode_gsmhandle_); gsm_destroy(encode_gsmhandle_);
} }
virtual int decode(SFLDataFormat * dst, unsigned char * src, size_t buf_size) virtual int decode(SFLDataFormat * dst, unsigned char * src, size_t /*buf_size*/)
{ {
if (gsm_decode(decode_gsmhandle_, (gsm_byte*) src, (gsm_signal*) dst) < 0) if (gsm_decode(decode_gsmhandle_, (gsm_byte*) src, (gsm_signal*) dst) < 0)
throw std::runtime_error("ERROR: gsm_decode\n"); throw std::runtime_error("ERROR: gsm_decode\n");
...@@ -75,7 +75,7 @@ class Gsm : public sfl::AudioCodec { ...@@ -75,7 +75,7 @@ class Gsm : public sfl::AudioCodec {
return frameSize_; return frameSize_;
} }
virtual int encode(unsigned char * dst, SFLDataFormat * src, size_t buf_size) virtual int encode(unsigned char * dst, SFLDataFormat * src, size_t /*buf_size*/)
{ {
gsm_encode(encode_gsmhandle_, (gsm_signal*) src, (gsm_byte*) dst); gsm_encode(encode_gsmhandle_, (gsm_signal*) src, (gsm_byte*) dst);
return 33; return 33;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment