G722 added in preferences

This commit is contained in:
Sylvain Berfini 2011-09-22 09:08:27 +02:00
parent c668c44c23
commit 6259fc0d0b
4 changed files with 6 additions and 0 deletions

View file

@ -36,6 +36,7 @@
<string name="pref_codec_pcma_key">pref_codec_pcma_key</string>
<string name="pref_codec_pcmu_key">pref_codec_pcmu_key</string>
<string name="pref_codec_gsm_key">pref_codec_gsm_key</string>
<string name="pref_codec_g722_key">pref_codec_g722_key</string>
<string name="pref_codec_amr_key">pref_codec_amr_key</string>
<string name="pref_codec_ilbc_key">pref_codec_ilbc_key</string>
<string name="pref_codec_speex8_key">pref_codec_speex8_key</string>

View file

@ -66,6 +66,7 @@
<string name="pref_codec_pcma">pcma</string>
<string name="pref_codec_pcmu">pcmu</string>
<string name="pref_codec_gsm">gsm</string>
<string name="pref_codec_g722">g722</string>
<string name="pref_codec_amr">amr</string>
<string name="pref_codec_ilbc">ilbc</string>
<string name="pref_codec_speex8">speex 8 Khz</string>

View file

@ -63,6 +63,9 @@
android:shouldDisableView="true" />
<CheckBoxPreference android:key="@string/pref_codec_gsm_key"
android:title="@string/pref_codec_gsm"/>
<CheckBoxPreference android:key="@string/pref_codec_g722_key"
android:defaultValue="false"
android:title="@string/pref_codec_g722"/>
<CheckBoxPreference android:key="@string/pref_codec_pcmu_key"
android:title="@string/pref_codec_pcmu"/>
<CheckBoxPreference android:key="@string/pref_codec_pcma_key"

View file

@ -434,6 +434,7 @@ public final class LinphoneManager implements LinphoneCoreListener {
enableDisableAudioCodec("speex", 8000, R.string.pref_codec_speex8_key);
enableDisableAudioCodec("iLBC", 8000, R.string.pref_codec_ilbc_key);
enableDisableAudioCodec("GSM", 8000, R.string.pref_codec_gsm_key);
enableDisableAudioCodec("G722", 8000, R.string.pref_codec_g722_key);
enableDisableAudioCodec("PCMU", 8000, R.string.pref_codec_pcmu_key);
enableDisableAudioCodec("PCMA", 8000, R.string.pref_codec_pcma_key);
enableDisableAudioCodec("AMR", 8000, R.string.pref_codec_amr_key);