replicant-frameworks_native/libs/audioflinger
Eric Laurent 01c4ba3563 Fix issue 1883666: Audio coming from the music player stopped suddenly
The problem comes from the code handling the automatic change of audio routing to speaker when notifications are played. The music is also muted while the sound is forced to speaker.
To avoid truncating the end of the notification, a delay is inserted between the end of the notification and the restoration of the audio routing.  If a new notification starts during this delay, the current music mute state read and saved before muting music corresponds to the forced mute due to previous notification. When the new notification ends, the mute state restored is muted and music stream stays muted for ever.

The fix consists in reading and saving music mute state only if the audio routing has been restored (check that mForcedRoute is back to 0).
2009-05-29 02:03:21 -07:00
..
A2dpAudioInterface.cpp
A2dpAudioInterface.h Remove deprecated openInputStream factory method 2009-05-19 18:56:13 -07:00
Android.mk
AudioBufferProvider.h
AudioDumpInterface.cpp
AudioDumpInterface.h Remove deprecated openInputStream factory method 2009-05-19 18:56:13 -07:00
AudioFlinger.cpp Fix issue 1883666: Audio coming from the music player stopped suddenly 2009-05-29 02:03:21 -07:00
AudioFlinger.h Fix issue 1846343 - part 1 2009-05-26 07:44:28 -07:00
AudioHardwareGeneric.cpp Fix issue 1846343 - part 1 2009-05-26 07:44:28 -07:00
AudioHardwareGeneric.h Remove deprecated openInputStream factory method 2009-05-19 18:56:13 -07:00
AudioHardwareInterface.cpp
AudioHardwareStub.cpp Fix issue 1846343 - part 1 2009-05-26 07:44:28 -07:00
AudioHardwareStub.h Remove deprecated openInputStream factory method 2009-05-19 18:56:13 -07:00
AudioMixer.cpp
AudioMixer.h
AudioResampler.cpp
AudioResampler.h
AudioResamplerCubic.cpp
AudioResamplerCubic.h
AudioResamplerSinc.cpp
AudioResamplerSinc.h