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

try with the smallest compression (#1143)

parent 315f458e
No related branches found
No related tags found
No related merge requests found
...@@ -410,7 +410,7 @@ AudioRtpRTX::sendSessionFromMic(int timestamp) ...@@ -410,7 +410,7 @@ AudioRtpRTX::sendSessionFromMic(int timestamp)
} else { } else {
int nbSamplesMax = 128; int nbSamplesMax = 512;
// no resampling required // no resampling required
compSize = _audiocodec->codecEncode( micDataEncoded, micData, nbSample*sizeof(int16)); compSize = _audiocodec->codecEncode( micDataEncoded, micData, nbSample*sizeof(int16));
......
...@@ -87,7 +87,7 @@ class Celt : public AudioCodec{ ...@@ -87,7 +87,7 @@ class Celt : public AudioCodec{
virtual int codecEncode (unsigned char *dst, short *src, unsigned int size) virtual int codecEncode (unsigned char *dst, short *src, unsigned int size)
{ {
int len = 0; int len = 0;
len = celt_encode(enc, (celt_int16_t *)src, (celt_int16_t *)src, dst, 128); len = celt_encode(enc, (celt_int16_t *)src, (celt_int16_t *)src, dst, 512);
// returns the number of bytes writen // returns the number of bytes writen
return len; return len;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment