replicant-frameworks_native/libs/audioflinger
Eric Laurent b3687ae925 Fix issue 2118464: cannot play ring tones and notifications after disconnecting BT headset while in call.
The problem comes from the fact that when the duplicated output is closed after BT headset disconnection, the OUTPUT_CLOSED notification is not sent to AudioSystem. Then the mapping between notification stream and duplicated output cached in AudioSystem is not cleared and next time a notification is played, the duplicated output is selected and the createTrack() request is refused by AudioFlinger as the selected output doesn't exist.
The notification is ignored by AudioFlinger because when it is sent by the terminating playback thread, the thread has already been removed from the playback thread list.

The fix consists in sending the notification in closeOutput() and not when exiting the playback thread.
The same fix is applied to record threads.
2009-09-15 07:10:12 -07:00
..
A2dpAudioInterface.cpp Workaround for issue 2046783. 2009-08-12 05:49:58 -07:00
A2dpAudioInterface.h Workaround for issue 2046783. 2009-08-12 05:49:58 -07:00
Android.mk Fix firestone build 2009-07-29 09:47:23 -07:00
AudioBufferProvider.h Add virtual destructor. 2009-07-07 11:03:13 -07:00
AudioDumpInterface.cpp Improved unit test code for Audioflinger. 2009-08-07 09:32:06 -07:00
AudioDumpInterface.h Improved unit test code for Audioflinger. 2009-08-07 09:32:06 -07:00
AudioFlinger.cpp Fix issue 2118464: cannot play ring tones and notifications after disconnecting BT headset while in call. 2009-09-15 07:10:12 -07:00
AudioFlinger.h Fix issue 2118464: cannot play ring tones and notifications after disconnecting BT headset while in call. 2009-09-15 07:10:12 -07:00
AudioHardwareGeneric.cpp Fix issue 1795088 Improve audio routing code 2009-07-23 06:03:39 -07:00
AudioHardwareGeneric.h Fix issue 1795088 Improve audio routing code 2009-07-23 06:03:39 -07:00
AudioHardwareInterface.cpp Fix getParameters() default implementation. 2009-08-04 06:17:43 -07:00
AudioHardwareStub.cpp Fix getParameters() default implementation. 2009-08-04 06:17:43 -07:00
AudioHardwareStub.h Fix getParameters() default implementation. 2009-08-04 06:17:43 -07:00
AudioMixer.cpp Fix issue 1795088 Improve audio routing code 2009-07-23 06:03:39 -07:00
AudioMixer.h Fix issue 1795088 Improve audio routing code 2009-07-23 06:03:39 -07:00
AudioPolicyManagerGeneric.cpp Improved unit test code for Audioflinger. 2009-08-07 09:32:06 -07:00
AudioPolicyManagerGeneric.h Improved unit test code for Audioflinger. 2009-08-07 09:32:06 -07:00
AudioPolicyService.cpp Fix issue 2045911: Camera Shutter tone does not play correctly while listening to music. 2009-08-27 05:58:10 -07:00
AudioPolicyService.h Fix issue 2045911: Camera Shutter tone does not play correctly while listening to music. 2009-08-27 05:58:10 -07: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