-------------------------------------------------------------------------------- -- Function......... : startMusic -- Author........... : -- Description...... : -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function AmbientMusic_Main.startMusic ( ) -------------------------------------------------------------------------------- -- Get the current scene -- local s = application.getCurrentUserScene ( ) if ( s ~= nil ) then -- Play the music with the index 0, with a fade time of 1 second -- music.play ( s, 0, 1 ) end -------------------------------------------------------------------------------- end --------------------------------------------------------------------------------