Fixed
Status Update
Comments
xa...@google.com <xa...@google.com>
cm...@google.com <cm...@google.com> #2
I'm observing the same thing on the Nexus 10.
ws...@gmail.com <ws...@gmail.com> #3
Sleep as Android users who upgraded to 4.3 recently report the same issue. It seems SoundPool looping is broken in 4.3...
hm...@google.com <hm...@google.com>
hm...@google.com <hm...@google.com> #4
I can approve the issue is reproducible on the 4.3 emulator. Unfortunately no hint in in the logcat related to audio or sound pool which would give further insight. The only think I'm getting releted to SoundPool every time I try using it is:
07-29 12:19:43.844: ERROR/SoundPool(296): error loading /system/media/audio/ui/KeypressReturn.ogg
07-29 12:19:43.864: WARN/AudioService(296): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
07-29 12:19:43.814: WARN/AudioService(296): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
07-29 12:19:43.814: ERROR/SoundPool(296): error loading /system/media/audio/ui/Effect_Tick.ogg
...
07-29 12:19:43.864: WARN/AudioService(296): onLoadSoundEffects(), Error -1 while loading samples
07-29 12:19:43.844: ERROR/SoundPool(296): error loading /system/media/audio/ui/KeypressReturn.ogg
07-29 12:19:43.864: WARN/AudioService(296): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
07-29 12:19:43.814: WARN/AudioService(296): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
07-29 12:19:43.814: ERROR/SoundPool(296): error loading /system/media/audio/ui/Effect_Tick.ogg
...
07-29 12:19:43.864: WARN/AudioService(296): onLoadSoundEffects(), Error -1 while loading samples
ws...@gmail.com <ws...@gmail.com> #5
I did try a non -1 looping parameter and it seems even finite looping is broken. Did someone had a chance to look at the 4.3 sources for SoundPool? Thanks.
an...@google.com <an...@google.com> #6
Incorrect behaviour also on Nexus 7 since 4.3.
Easy to reproduce, Code nearly as above:
https://play.google.com/store/apps/details?id=nax.naxan.virtualfan
(in Mode Soundpool on 4.3 only one loop is played, on 4.2 it's looping)
Addition:
The code in 4.2.2 looks like looping is done in the native part:
http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.2.2_r1/android/media/SoundPool.java/
Easy to reproduce, Code nearly as above:
(in Mode Soundpool on 4.3 only one loop is played, on 4.2 it's looping)
Addition:
The code in 4.2.2 looks like looping is done in the native part:
an...@google.com <an...@google.com> #7
I'm having the same problem, loop will only play once :\
an...@google.com <an...@google.com> #8
[Comment deleted]
ta...@gmail.com <ta...@gmail.com> #9
Comment has been deleted.
ko...@gmail.com <ko...@gmail.com> #10
Comment has been deleted.
ch...@gmail.com <ch...@gmail.com> #11
Comment has been deleted.
ba...@gmail.com <ba...@gmail.com> #12
Comment has been deleted.
Description
After upgrading to AGP 8.5, we're seeing many more
mergeDebugResource
tasks being run. It's having a large negative impact on our build times -- we're now downloading ~9GB of artifacts from our Gradle remote build cache, whereas before it was 1GB, and most of that increase is frommergeDebugResources
.This is reproduced by running
./gradlew compileDebugSources
.I believe this is caused by this commit:https://cs.android.com/android-studio/platform/tools/base/+/03860fa78241c5d41556868241e2abd74bce42f0
It appears that
mergeDebugResources
is always run now, regardless of yourunitTestOptions.includeAndroidResources
setting.Studio Build: N/A Version of Gradle Plugin: 8.5.1 Version of Gradle: 8.7 Version of Java: 17.0.5 OS: N/A