Skip to content
Snippets Groups Projects
Commit c8293ff1 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#2209] Fix speex codec framesize

parent 971b66f3
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment