Commit c8293ff1 authored by Alexandre Savard's avatar Alexandre Savard

[#2209] Fix speex codec framesize

parent 971b66f3
......@@ -113,7 +113,7 @@ class Speex : public AudioCodec
speex_bits_read_from (&_speex_dec_bits, (char*) src, size);
speex_decode_int (_speex_dec_state, &_speex_dec_bits, dst);
return _speex_frame_size * ratio;
return _frameSize;
}
virtual int codecEncode (unsigned char *dst, short *src, unsigned int size) {
......
......@@ -115,7 +115,7 @@ class Speex : public AudioCodec
speex_decode_int (_speex_dec_state, &_speex_dec_bits, dst);
// return the nuber of byte, not the number of sample
return _speex_frame_size * 2;
return _frameSize * 2;
}
virtual int codecEncode (unsigned char *dst, short *src, unsigned int size) {
......
......@@ -114,7 +114,7 @@ class Speex : public AudioCodec
speex_bits_read_from (&_speex_dec_bits, (char*) src, size);
speex_decode_int (_speex_dec_state, &_speex_dec_bits, dst);
return 2 * _speex_frame_size * ratio;
return _frameSize;
}
virtual int codecEncode (unsigned char *dst, short *src, unsigned int size) {
......
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