Deactivate audio codecs that use a clock rate other than 8000 and 16000 Hz.
This commit is contained in:
parent
b980070b66
commit
04ab8dea75
3 changed files with 5 additions and 8 deletions
|
@ -106,11 +106,6 @@
|
|||
android:defaultValue="@bool/pref_codec_g722_default"
|
||||
android:title="@string/pref_codec_g722"/>
|
||||
|
||||
<CheckBoxPreference
|
||||
android:key="@string/pref_codec_silk24_key"
|
||||
android:defaultValue="@bool/pref_codec_silk24_default"
|
||||
android:title="@string/pref_codec_silk24"/>
|
||||
|
||||
<CheckBoxPreference
|
||||
android:key="@string/pref_codec_silk16_key"
|
||||
android:defaultValue="@bool/pref_codec_silk16_default"
|
||||
|
|
|
@ -717,9 +717,11 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
|||
enableDisableAudioCodec("PCMA", 8000, 1, R.string.pref_codec_pcma_key);
|
||||
enableDisableAudioCodec("AMR", 8000, 1, R.string.pref_codec_amr_key);
|
||||
enableDisableAudioCodec("AMR-WB", 16000, 1, R.string.pref_codec_amrwb_key);
|
||||
enableDisableAudioCodec("SILK", 24000, 1, R.string.pref_codec_silk24_key);
|
||||
//enableDisableAudioCodec("SILK", 24000, 1, R.string.pref_codec_silk24_key);
|
||||
enableDisableAudioCodec("SILK", 24000, 1, false);
|
||||
enableDisableAudioCodec("SILK", 16000, 1, R.string.pref_codec_silk16_key);
|
||||
enableDisableAudioCodec("SILK", 12000, 1, R.string.pref_codec_silk12_key);
|
||||
//enableDisableAudioCodec("SILK", 12000, 1, R.string.pref_codec_silk12_key);
|
||||
enableDisableAudioCodec("SILK", 12000, 1, false);
|
||||
enableDisableAudioCodec("SILK", 8000, 1, R.string.pref_codec_silk8_key);
|
||||
|
||||
// Configure video codecs
|
||||
|
|
|
@ -138,7 +138,7 @@ public class PreferencesFragment extends PreferencesListFragment implements EcCa
|
|||
//detectAudioCodec(R.string.pref_codec_silk8_key,"SILK",8000, 1, true);
|
||||
//detectAudioCodec(R.string.pref_codec_silk12_key,"SILK",12000, 1, true);
|
||||
detectAudioCodec(R.string.pref_codec_silk16_key,"SILK",16000, 1, true);
|
||||
detectAudioCodec(R.string.pref_codec_silk24_key,"SILK",24000, 1, true);
|
||||
//detectAudioCodec(R.string.pref_codec_silk24_key,"SILK",24000, 1, true);
|
||||
detectAudioCodec(R.string.pref_codec_g729_key,"G729",8000, 1, true);
|
||||
|
||||
// No video
|
||||
|
|
Loading…
Reference in a new issue