CSipSimple icon indicating copy to clipboard operation
CSipSimple copied to clipboard

Opus 48000/2

Open sacp87 opened this issue 8 years ago • 0 comments

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?

sacp87 avatar Jan 23 '17 19:01 sacp87