replicant-frameworks_native/libs/audioflinger
Eric Laurent deea502a92 Fix isssue 2548710: Native AudioTrack resources never freed.
The problem is a bug in AudioFlinger::MixerThread::prepareTracks_l() that makes that even if the TrackHandle
is destroyed, the corresponding Track will remain active as long as frames are ready for mixing.
If the track uses shared memory (static mode) and the sound is looped, this track will play for ever.

The fix consists in removing the track from active list immediately if the track is terminated.

Change-Id: I4582aa1d981079ab79be442fb6185f5afaed5cf3
2010-03-31 12:36:34 -07:00
..
A2dpAudioInterface.cpp
A2dpAudioInterface.h
Android.mk
AudioBufferProvider.h
AudioDumpInterface.cpp
AudioDumpInterface.h
AudioFlinger.cpp
AudioFlinger.h
AudioHardwareGeneric.cpp
AudioHardwareGeneric.h
AudioHardwareInterface.cpp
AudioHardwareStub.cpp
AudioHardwareStub.h
AudioMixer.cpp
AudioMixer.h
AudioPolicyManagerBase.cpp
AudioPolicyService.cpp
AudioPolicyService.h
AudioResampler.cpp
AudioResampler.h
AudioResamplerCubic.cpp
AudioResamplerCubic.h
AudioResamplerSinc.cpp
AudioResamplerSinc.h