Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix issue 2305382: Pick up original call makes a noisy beep when wire…
…d headset connected.

The noise is the residual ring tone that is still playing while the call is answered and the
audio route changed to headset or earpiece.

The fix consists in muting the ringing tone when changing mode from ringtone to in call
and delaying the route change until the audio buffers are emptied.
  • Loading branch information
Eric Laurent committed Feb 23, 2010
1 parent 2209b6f commit 1953686
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/hardware_legacy/AudioPolicyManagerBase.h
Expand Up @@ -35,6 +35,9 @@ namespace android {
// Time in seconds during which we consider that music is still active after a music
// track was stopped - see computeVolume()
#define SONIFICATION_HEADSET_MUSIC_DELAY 5
// Time in milliseconds during witch some streams are muted while the audio path
// is switched
#define MUTE_TIME_MS 2000

#define NUM_TEST_OUTPUTS 5

Expand Down

0 comments on commit 1953686

Please sign in to comment.