Hi,
I’ve got global volume settings in my app - one for the music and one for the sound effects. Both use a slider widget to configure. I’m getting reports from some Android users (specifically an Experia S and a Samsung Galaxy 2) that say the sound still plays intermittently even when they have the volume turned down to zero.
Haven’t had the problem reported at all on iOS. I’m on build 1210.
Code looks like this…
function sliderListener( event ) local slider = event.target local value = event.value if slider.id == "MusicSlider" then thePlayer.MusicVolume = value audio.setVolume((thePlayer.MusicVolume / 100), {channel=sndChannelBgMusic }) elseif slider.id == "SfxSlider" then thePlayer.SfxVolume = value audio.setVolume((thePlayer.SfxVolume / 100), { channel=sndChannelSfx }) audio.setVolume((thePlayer.SfxVolume / 100), { channel=sndChannelSfx2}) audio.setVolume((thePlayer.SfxVolume / 100)/8, {channel=sndChannelSfxBg}) audio.setVolume((thePlayer.SfxVolume / 100), { channel=sndChannelUI }) end end