Soundpool playback error

All your problems with Audio, Video and Images.

Soundpool playback error

Postby multiplydivide » Thu Jul 14, 2011 5:14 pm

I have a soundpool and a sound I would like to play as the users finger intersects different objects on the screen,
when I run the program the first few intersections will trigger the sound but then it stops working...
my sounds are stored in a class called Assets and are public static vars..
Code: Select all
if(System.currentTimeMillis() > lastBleep + BLEEP_REST){
         lastBleep = System.currentTimeMillis();
         for(int i=0; i < len; i++ ){
            sp = parts.get(i);
            r = new Rect(sp.x-100, sp.y-100, sp.x +100, sp.y + 100);
            if(r.contains(x, y)){
               if(i != previousBleep){
                  previousBleep = i;

I have the intersections logging when they occur and they are not the issue...
I read somewhere that soundpool has some issues playing back sounds at a fast rate but that a timeout of several milliseconds would fix it(they said 30-40 my BLEEP_REST is 100)

the log after sounds stop working

V/SoundPool(10115): play 0x146978: sampleID=2, channelID=149, leftVolume=1.000000, rightVolume=1.000000, priority=0, loop=0, rate=1.000000
E/AudioFlinger( 57): no more track names available
E/AudioTrack(10115): AudioFlinger could not create track, status: -12
E/SoundPool(10115): Error creating AudioTrack

Thanks for your help....
Posts: 34
Joined: Wed Apr 28, 2010 2:09 am


Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 3 guests