/** * Set audio parameter "wb_amr" for HD-Voice (Wideband AMR). * * @param state: 0 = unsupported, 1 = supported. */ private void setWbAmr(int state) { if (state == 1) { Log.d(LOG_TAG, "setWbAmr(): setting audio parameter - wb_amr=on"); audioManager.setParameters("wb_amr=on"); } else { Log.d(LOG_TAG, "setWbAmr(): setting audio parameter - wb_amr=off"); audioManager.setParameters("wb_amr=off"); } }
/** * Set audio parameter "wb_amr" for HD-Voice (Wideband AMR). * * @param state: 0 = unsupported, 1 = supported. REQUIRED FOR JF FAMILY THIS SETS THE INFORMATION * CRASHES WITHOUT THIS FUNCTION part of the new csd binary */ private void setWbAmr(int state) { if (state == 1) { Rlog.d(RILJ_LOG_TAG, "setWbAmr(): setting audio parameter - wb_amr=on"); mAudioManager.setParameters("wide_voice_enable=true"); } else if (state == 0) { Rlog.d(RILJ_LOG_TAG, "setWbAmr(): setting audio parameter - wb_amr=off"); mAudioManager.setParameters("wide_voice_enable=false"); } }