[android-beginners] Re: Need Help: Can't play multiple sounds simultaneously with SoundPool

2010-04-29 Thread BobG
I was working on it last night... was going to upload it as an example sure enough, I'm having problems too... I have a looping engine sound I can make louder and softer, faster and slower with the thumbwheel, thought I'd add a one shot wav that plays 4 beeps to it on a touch. The beep seems

[android-beginners] Re: Need Help: Can't play multiple sounds simultaneously with SoundPool

2010-04-29 Thread BobG
package com.aiti.playsound; //play car_idle and adjust playback rate using soundpool //Mar 5 10 Bob G //Apr 29 10 Bob G add beep4 on touch import java.util.HashMap; import android.app.Activity; import android.media.AudioManager; import android.media.SoundPool; import android.os.Bundle; import

[android-beginners] Re: Need Help: Can't play multiple sounds simultaneously with SoundPool

2010-04-28 Thread Jack
I am adding two different sounds with ID '1' and '2'. But I just want to play them simultaneously and not worry about adjusting volume as of now. Still can't figure out how to do that. On Apr 16, 2:48 pm, BobG bobgard...@aol.com wrote: Looks like you are only adding sound1 to the pool. Need to

[android-beginners] Re: Need Help: Can't play multiple sounds simultaneously with SoundPool

2010-04-28 Thread Jack
I am adding two different sounds with ID '1' and '2'. But I just want to play them simultaneously and not worry about adjusting volume as of now. Still can't figure out how to do that. On Apr 16, 2:48 pm, BobG bobgard...@aol.com wrote: Looks like you are only adding sound1 to the pool. Need to

[android-beginners] Re: Need Help: Can't play multiple sounds simultaneously with SoundPool

2010-04-16 Thread BobG
Wouldnt you add both sounds to the pool, and issue 2 play looping commands? Then you can adj rate and volume while they are playing. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow

[android-beginners] Re: Need Help: Can't play multiple sounds simultaneously with SoundPool

2010-04-16 Thread BobG
Looks like you are only adding sound1 to the pool. Need to add sound2 also? You need to remember the soundid the pool gives you... you could start 'airplane sound' then start 3 more of them, and they all have diff IDs so you can adj the vol of each as they fly by, etc. On Apr 13, 5:26 pm, Jack

[android-beginners] Re: Need Help: Can't play multiple sounds simultaneously with SoundPool

2010-04-13 Thread Jack
Thanks BobG. But it doesn't work. I was told that if I call mSoundManager.playSound() twice in immediate succession, then it might work, but it doesn't. Can somebody help? On Apr 13, 12:53 pm, BobG bobgard...@aol.com wrote: Try declaring soundpool for 4 more sounds than you want to play.