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 and
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 to
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 wrote:
> Looks like you are only adding sound1 to the pool. Need to add sound2
> also?
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 wrote:
> Looks like you are only adding sound1 to the pool. Need to add sound2
> also?
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 wr
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
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 wrote:
> Try declaring soundpool for 4 more sounds than you want to play.
> There's some messages s
Try declaring soundpool for 4 more sounds than you want to play.
There's some messages saying that helps?
--
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 at
http://stackoverflow.co
8 matches
Mail list logo