Hello,
I’m trying to force the volume to maximum then listen when the user put it to 0 :
local function listenVolume(evt)
local vol=audio.getVolume()
vol\_txt.text=tostring(vol)
if vol==0 then vol\_txt.isVisible=false end
end
audio.setVolume(1)
timer.performWithDelay(500,listenVolume,0)
Compiled for Android, the volume is not initialised to the maximum level and the text always shows 1… in fact nothing works, why!?
Thanks to show me the right way!
[import]uid: 107239 topic_id: 24617 reply_id: 324617[/import]
[import]uid: 52491 topic_id: 24617 reply_id: 100048[/import]