How do I fade kill a 30 sec audio sound when a certain button is pressed.

I have the sound play through main.lua which means it starts for the menu. Its only 30 secs but I want to kill it as soon as the start button is pressed. [import]uid: 88495 topic_id: 34621 reply_id: 334621[/import]

The audio.fadeout() API Call should do the trick:

http://docs.coronalabs.com/api/library/audio/fadeOut.html
[import]uid: 199310 topic_id: 34621 reply_id: 137664[/import]

The audio.fadeout() API Call should do the trick:

http://docs.coronalabs.com/api/library/audio/fadeOut.html
[import]uid: 199310 topic_id: 34621 reply_id: 137664[/import]