SoundPool sample?

Jim T

Member
Licensed User
Longtime User
Can anyone share a code sample showing the use of SoundPool? I am working on a timer and I would like an mp3 "Ding" at the end, but I am a bit stuck on using sound.

thanks
Jim
 

kvfive

New Member
Licensed User
Longtime User
Hi all, very new to B4A... Just a couple of questions regarding soundpool.
In the example (Erel's post) once I compile and place on my phone (HTC DHD)
I still get the phones built-in click sound played almost over the start of the sound sample
(Pressing one of the grey buttons in the app itself)
I know that I can set button attributes to trigger on the down action, but this is double triggering the sound sample now and then :(

Is there anyway of having the HTC click turned off/temporary disabled by the app itself ?

Also, I can only depress one of the sound buttons, kinda like a mono synth :(
Can't press both buttons together, so both sounds are heard simutaneously?
anyway around this ?

Example code would be handy :) for a complete novice.

Thanks :)

Paul.
 
Upvote 0
Top