audio.setVolume weird behaviour

I’m trying to use audio.setVolume() to mute/unmute all sound FX in my app. When the user clicks a sound selector switch, the app calls audio.setVolume(0) and audio.setVolume(1) to toggle between mute/ unmute.

This sort of works, except that after you set the volume to 0, sounds can still be triggered via audio.play() for a few more seconds,

Did anyone else encounter this problem and if so, how did you work around it? [import]uid: 33608 topic_id: 26418 reply_id: 326418[/import]

I have not encountered this previously; what device are you testing on, or is this in the simulator? [import]uid: 52491 topic_id: 26418 reply_id: 107180[/import]

Its in the sim. I haven’t tested it on the device yet. [import]uid: 33608 topic_id: 26418 reply_id: 107184[/import]

Would you be able to submit a bug report with a simple project file we can run that demonstrates the issue, please? It would also help to know if this behavior also happens on the device if possible - if not submit the bug and one of us will test that part.

Peach :slight_smile: [import]uid: 52491 topic_id: 26418 reply_id: 107366[/import]