Fixed
Status Update
Comments
sp...@google.com <sp...@google.com> #2
I'm observing the same thing on the Nexus 10.
da...@google.com <da...@google.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...
sp...@google.com <sp...@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
da...@google.com <da...@google.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.
sp...@google.com <sp...@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:
sp...@google.com <sp...@google.com> #7
I'm having the same problem, loop will only play once :\
sp...@google.com <sp...@google.com> #8
[Comment deleted]
sp...@google.com <sp...@google.com> #9
Same here, I've only managed to solve it by using MediaPlayer instead, although I think the looping sounds clunkier.
an...@google.com <an...@google.com> #10
Got the same problem on Gnex 4.3, can't use the MediaPlayer since I need the setRate Method for car engine pitch modification.
90% of car/bike games on the play store have their engine sound effect broken on 4.3 due to this.
90% of car/bike games on the play store have their engine sound effect broken on 4.3 due to this.
an...@google.com <an...@google.com> #11
The same for nexus 7.
Description
I want to add a new asset directory to the Android instrumentation tests via the Variant API, but it is not working as the DSL API. I have attached a sample project that reproduces the issue.
In the
build.gradle.kts
I have:but when I run my test that validates that the asset file is present, it fails:
I can also see the APK is missing the files:
if I comment out the Variant APIs lines above and instead use the 'older' DSL:
then things work as expected:
and the APK also contains the expected asset files:
Let me know if you need any more information.