r3gis3r / CSipSimple

CSipSimple Mirror (no pull-requests here)
http://www.csipsimple.com
GNU Lesser General Public License v3.0
302 stars 227 forks source link

Opus 48000/2 #55

Open sacp87 opened 7 years ago

sacp87 commented 7 years ago

When I compiled enabling the Opus codec. Everything works fine, but the codec generated is Opus 16000/1.

If I change the data in the file jni/opus/pj_sources/pj_opus.c:

-if(opus_factory.internal_clock_rate == 0){
        opus_factory.internal_clock_rate = 16000;
    }
+if(opus_factory.internal_clock_rate == 0){
        opus_factory.internal_clock_rate = 48000;
    }
-attr->info.channel_cnt = 1;
+attr->info.channel_cnt = 2;

-codecs[*count].channel_cnt = 1;
+codecs[*count].channel_cnt = 2;

This generates the 48000/2 codec, but when I use it it does not work.

Anyone know how to generate this codec?