Soundpool volume question

bryon

Member
Licensed User
Longtime User
When playing sounds with Soundpool, I can't get my device to adjust volume.

Here's what I'm doing:

B4X:
Dim p as phone
P.SetVolume(P.VOLUME_MUSIC,P.GetMaxVolume(P.VOLUME_MUSIC),True)

I can see the device volume UI element but it has no effect on the volume of my sound. I've also tried all the other channels as well with no luck.

What channel should I be specifying if I want the device to control the volume or am I even doing this right?

Thanks,
Bryon
 

bryon

Member
Licensed User
Longtime User
Thanks, Erel.

My only development device is an HP Touchpad running CM7 so perhaps this is why I'm not seeing the volume working.

~Bryon
 
Upvote 0
Top