soundpool
SoundPool slowing down app
I have a class called Sound.java that consists of 3 functions (initSound, addSound, and playSound). public static void initSound(Context con) {[详细]
2023-03-13 15:31 分类:问答Error reported by SoundManager
Got a force close in my app reporting: java.lang.ClassCastException: int[] cannot be cast to java.lang.ref.WeakReference[详细]
2023-03-12 06:52 分类:问答Android SoundPool heap limits
I am using a SoundPool to load several sound clips into and play them back. It is functioning 100% correctly from what I can tell. But during the .load() calls I am getting my log spammed with:[详细]
2023-03-12 06:43 分类:问答getAudioMode[0] error
I am developing a game and playing audio sounds using SoundPool and MediaPlayer. Every time when any audio sound开发者_如何学C plays, it shows error in LogCat.[详细]
2023-03-09 17:14 分类:问答How to make the volume rocker affect a stream not currently playing?
I am using SoundPool to play sound effects through the media stream (STREAM_MUSIC) in my Android app. It works well except that when using the volume rocker to change the volume, most of the time it c[详细]
2023-02-28 08:21 分类:问答MediaPlayer vs SoundPool for only 1 simultaneous stream
I\'m working on a game in which one single sound is played each time the phone is shaked. Does it make sense to use a SoundPool and load sounds in the onCreate of my activity, or is it ok to create a[详细]
2023-02-17 22:15 分类:问答Android: How do I loop sound effects?
I have two sound effects assigned to a button. I\'m wondering how I can loop back to the first sound effect, after the last one is played.[详细]
2023-02-14 23:28 分类:问答How does one play sounds asynchronously and simultaneously(polyphony) on Android?
Imagine a piano like touch based application. Now all that has to be done is to assign different sound files to different keys. I am using the SoundPool class but the following problems are happening:[详细]
2023-02-08 22:31 分类:问答Problem sound volume when testing on a device
I play a very short and basic mp3 sound effect in my application. It sounds great on the AVD emulator but doesn\'t sound at all on my external device. I use the Android plugin for Eclipse on Mac OSX a[详细]
2023-02-08 11:49 分类:问答SoundPool crashes in two scenarios. Code for first scenario crashes
@Ian G. Clifton Here is the code for the first type of soundpool I tried. when the button to load the activity the program FCs back to the previous activity.[详细]
2023-02-08 10:48 分类:问答