I made some changes to go to the menu, but when it does the audio stops, it only starts playing again if I pause and press resume.
/// Select Button ///
if ( kConfirm ){
if ( pause ){
// audio_play_sound( sound[1], 0, 0 );
switch( b ){
case 0: // Resume
alarm[0] = game_get_speed(gamespeed_fps)* 0.1; //resume timer
break;
//case 1: // Opções
// global.origin_screen = "jogo";
// room_goto(rm_config);
//break;
case 1: // MainMenus
room_goto(rm_menu);
alarm[0] = game_get_speed(gamespeed_fps)* 0.1; //resume timer
break;
case 2: // Exit
switch os_type
{
case os_android:
android_game_end();
break;
default:
game_end();
break;
}
break;
}
}
} //end Confirm statement
}