summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2011-01-16 17:07:27 -0800
committerEric Laurent <elaurent@google.com>2011-01-17 10:36:12 -0800
commit117b7bb5b5a4457711f59bde3dcc83d8f111c524 (patch)
treef6bd07b851696eabb510fcb9a575638ba65ea1f7 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parentec7c9ff0bb1c98cb8bec3ec7bdacbae3a434fa53 (diff)
Fix issue 3354692.
The problem is that SoundPool never calls the onLoadComplete() callback when load() method fails because the file cannot be opened. AudioService loadSoundEffects() was blocked waiting for a callback that never came. In this particular case, this happened on a specific build where sound effects assets were not included. The fix consists in waiting for the callback only if at least one sample is accepted by SoundPool load(). Also moved the initial loading of sound effect samples from the boot completed broadcast receiver to the audio service message handler to avoid waiting in the main system server thread. Change-Id: I902e5988f8b644a81d8e585c52eed1df4ca0ec05
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions