Loading services/core/java/com/android/server/audio/SoundEffectsHelper.java +5 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,10 @@ class SoundEffectsHelper { mFileName = fileName; mSampleId = EFFECT_NOT_IN_SOUND_POOL; } void unload() { mSampleId = EFFECT_NOT_IN_SOUND_POOL; mLoaded = false; } } // All the fields below are accessed by the worker thread exclusively private final List<Resource> mResources = new ArrayList<Resource>(); Loading Loading @@ -230,6 +234,7 @@ class SoundEffectsHelper { for (Resource res : mResources) { if (res.mSampleId != EFFECT_NOT_IN_SOUND_POOL) { mSoundPool.unload(res.mSampleId); res.unload(); } } mSoundPool.release(); Loading Loading
services/core/java/com/android/server/audio/SoundEffectsHelper.java +5 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,10 @@ class SoundEffectsHelper { mFileName = fileName; mSampleId = EFFECT_NOT_IN_SOUND_POOL; } void unload() { mSampleId = EFFECT_NOT_IN_SOUND_POOL; mLoaded = false; } } // All the fields below are accessed by the worker thread exclusively private final List<Resource> mResources = new ArrayList<Resource>(); Loading Loading @@ -230,6 +234,7 @@ class SoundEffectsHelper { for (Resource res : mResources) { if (res.mSampleId != EFFECT_NOT_IN_SOUND_POOL) { mSoundPool.unload(res.mSampleId); res.unload(); } } mSoundPool.release(); Loading