Commit 9ebdc6ad authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

fix warnings in src/audio/codecs

parent 8005e39f
......@@ -30,7 +30,7 @@ extern "C"{
class Gsm : public AudioCodec {
public:
// _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;
_channel = 1;
_bitrate = 13.3;
......@@ -42,6 +42,10 @@ public:
printf("AudioCodec: ERROR: encode_gsm_create\n");
}
Gsm( const Gsm& );
Gsm& operator=( const Gsm& );
virtual ~Gsm (void){
gsm_destroy(_decode_gsmhandle);
gsm_destroy(_encode_gsmhandle);
......
......@@ -25,7 +25,13 @@
class Speex : public AudioCodec{
public:
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;
_channel = 1;
......@@ -34,6 +40,9 @@ public:
initSpeex();
}
Speex( const Speex& );
Speex& operator=(const Speex&);
void initSpeex() {
/*
if (_clockRate < 16000 ) {
......
Supports Markdown
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