summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorMikhail Naganov <mnaganov@google.com>2019-07-02 14:35:42 -0700
committerMikhail Naganov <mnaganov@google.com>2019-07-10 14:51:18 -0700
commit251c595896e9a27c3fb70a61541c479f435442e0 (patch)
tree277ad0e3385877756e3cc3ed7b9478e291018cea /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parenta1a85a9d292869fb56d74c5b1cdcc8b60021591f (diff)
Refactor SoundEffectsHelper for asynchronous loading
Use a dedicated thread for all SoundPool and MediaPlayer operations. This ensures that the client (AudioService) doesn't get blocked or delayed. This also removes the need to use locking as all access to data happens on the same thread. Simplify the implementation of the mapping between UI effect IDs and SoundPool sample IDs. Add event logging for sound effects loading. Bug: 135763139 Test: normal scenario media volume responsiveness with stuck SoundPool behavior when declared sound assets are missing Change-Id: Ie5a1684a2cabe05ff53270ad97cab161a87a59f9
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions