let BGM_LOAD=0;
let BGM_PLAY=1;
let BGM_FADEOUT_5=2;
let BGM_FADEOUT_10=3;
let BGM_FADEOUT_15=4;
let BGM_FADEOUT_20=5;
let BGM_DELETE=6;

function SetMusic(let file,let command)
{
	alternative(command)
	case(BGM_LOAD){if(tuning_playmusic){LoadMusic(file);}}
	case(BGM_PLAY){if(tuning_playmusic){PlayMusic(file);}}
	case(BGM_FADEOUT_5 ){FadeOutMusic(file,5);}
	case(BGM_FADEOUT_10){FadeOutMusic(file,10);}
	case(BGM_FADEOUT_15){FadeOutMusic(file,15);}
	case(BGM_FADEOUT_20){FadeOutMusic(file,20);}
	case(BGM_DELETE){DeleteMusic(file);}
}
