Add new audio mode for audio communications other than telelphony.
The audio mode MODE_IN_CALL signals the system the device a phone call is currently underway. There was no way for audio video chat or VoIP applications to signal a call is underway, but not using the telephony resources. This change introduces a new mode to address this. Changes in other parts of the system (java and native) are required to take this new mode into account. The generic AudioPolicyManager is updated to not use its phone state variable directly, but to use two new convenience methods, isInCall() and isStateInCall(int) instead. Change-Id: Id744cd26520ea1d1a4795eabe6a1f0c58789af76
This commit is contained in:
@ -5808,7 +5808,8 @@ uint32_t AudioFlinger::EffectModule::deviceAudioSystemToEffectApi(uint32_t devic
|
||||
const uint32_t AudioFlinger::EffectModule::sModeConvTable[] = {
|
||||
AUDIO_MODE_NORMAL, // AudioSystem::MODE_NORMAL
|
||||
AUDIO_MODE_RINGTONE, // AudioSystem::MODE_RINGTONE
|
||||
AUDIO_MODE_IN_CALL // AudioSystem::MODE_IN_CALL
|
||||
AUDIO_MODE_IN_CALL, // AudioSystem::MODE_IN_CALL
|
||||
AUDIO_MODE_IN_CALL // AudioSystem::MODE_IN_COMMUNICATION, same conversion as for MODE_IN_CALL
|
||||
};
|
||||
|
||||
int AudioFlinger::EffectModule::modeAudioSystemToEffectApi(uint32_t mode)
|
||||
|
Reference in New Issue
Block a user