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)
{
	if(tuning_playmusic)
	{
		alternative(command)
		case(BGM_LOAD){LoadMusic(file);}
		case(BGM_PLAY){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);}
	}
}
