Skip to content
Snippets Groups Projects
Commit 9ebdc6ad authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

fix warnings in src/audio/codecs

parent 8005e39f
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ extern "C"{ ...@@ -30,7 +30,7 @@ extern "C"{
class Gsm : public AudioCodec { class Gsm : public AudioCodec {
public: public:
// _payload should be 3 // _payload should be 3
Gsm (int payload=3): AudioCodec(payload, "GSM"){ Gsm (int payload=3): AudioCodec(payload, "GSM"), _decode_gsmhandle(NULL), _encode_gsmhandle(NULL){
_clockRate = 8000; _clockRate = 8000;
_channel = 1; _channel = 1;
_bitrate = 13.3; _bitrate = 13.3;
...@@ -42,6 +42,10 @@ public: ...@@ -42,6 +42,10 @@ public:
printf("AudioCodec: ERROR: encode_gsm_create\n"); printf("AudioCodec: ERROR: encode_gsm_create\n");
} }
Gsm( const Gsm& );
Gsm& operator=( const Gsm& );
virtual ~Gsm (void){ virtual ~Gsm (void){
gsm_destroy(_decode_gsmhandle); gsm_destroy(_decode_gsmhandle);
gsm_destroy(_encode_gsmhandle); gsm_destroy(_encode_gsmhandle);
......
...@@ -25,7 +25,13 @@ ...@@ -25,7 +25,13 @@
class Speex : public AudioCodec{ class Speex : public AudioCodec{
public: public:
Speex(int payload=0) Speex(int payload=0)
: AudioCodec(payload, "speex") : AudioCodec(payload, "speex"),
_speexModePtr(NULL),
_speex_dec_bits(),
_speex_enc_bits(),
_speex_dec_state(),
_speex_enc_state(),
_speex_frame_size()
{ {
_clockRate = 8000; _clockRate = 8000;
_channel = 1; _channel = 1;
...@@ -34,6 +40,9 @@ public: ...@@ -34,6 +40,9 @@ public:
initSpeex(); initSpeex();
} }
Speex( const Speex& );
Speex& operator=(const Speex&);
void initSpeex() { void initSpeex() {
/* /*
if (_clockRate < 16000 ) { if (_clockRate < 16000 ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment