I have a class called Sound.java that consists of 3 functions (initSound, addSound, and playSound). public static void initSound(Context con) {
Got a force close in my app reporting: java.lang.ClassCastException: int[] cannot be cast to java.lang.ref.WeakReference
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:
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.
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
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
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.
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:
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
@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.