B bryon Member Licensed User Longtime User Jan 17, 2012 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Jan 18, 2012 #2 This is the correct channel. I tried it and it does work correctly. Upvote 0
B bryon Member Licensed User Longtime User Jan 18, 2012 #3 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
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