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 Update more references to openInputStream in support classes. 2009-05-19 18:28:20 -07:00
A2dpAudioInterface.h Remove deprecated openInputStream factory method 2009-05-19 18:56:13 -07:00
Android.mk auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
AudioBufferProvider.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
AudioDumpInterface.cpp auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
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 Fix issue 1745312: Various cleanups in media framework 2009-04-21 07:56:33 -07:00
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 auto import from //branches/cupcake_rel/...@140373 2009-03-18 17:39:46 -07:00
AudioMixer.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
AudioResampler.cpp auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
AudioResampler.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
AudioResamplerCubic.cpp auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
AudioResamplerCubic.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
AudioResamplerSinc.cpp auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
AudioResamplerSinc.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00