Street Fighter II/ModuleAudio.cpp
Mix_Music* const ModuleAudio::LoadMusic(const char* path)
{
	Mix_Music* music;
	music = Mix_LoadMUS(path);

	for (int i = 0; i < MAX_AUDIOS; i++) {
		if (musics[i] == nullptr) {
			musics[i] = music;
			break;
		}
	}

	return music;
}
// Load new music from file path
Load new music from file path
Load new music from file path
Mix_Music* const ModuleAudio::LoadMusic(const char* path)
{
	Mix_Music* music;
	music = Mix_LoadMUS(path);
	for (int i = 0; i < MAX_AUDIOS; i++) {
		if (musics[i] == nullptr) {
			musics[i] = music;
			break;
		}
	}
	return music;
}
Mix_Music * const ModuleAudio :: LoadMusic ( const char * path ) { Mix_Music * music ; music = Mix_LoadMUS ( path ) ; for ( int i = 0 ; i < MAX_AUDIOS ; i ++ ) { if ( musics [ i ] == nullptr ) { musics [ i ] = music ; break ; } } return music ; }
Load new music from file path
Load new music from file path