mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-10-02 11:48:04 +03:00
bgm.sdlmixer.c: Allow non-WAV audio formats
Ogg is used in the MangaGamer version of Rance 5D.
This commit is contained in:
+2
-2
@@ -64,9 +64,9 @@ static Mix_Music *bgm_load(int no) {
|
||||
|
||||
SDL_RWops *rwops = SDL_RWFromConstMem(dfile->data, dfile->size);
|
||||
|
||||
mix_music = Mix_LoadMUSType_RW(rwops, MUS_WAV, SDL_TRUE /* freesrc */);
|
||||
mix_music = Mix_LoadMUS_RW(rwops, SDL_TRUE /* freesrc */);
|
||||
if (mix_music == NULL) {
|
||||
WARNING("not .wav file\n");
|
||||
WARNING("Failed to load BGM %d: %s\n", no, SDL_GetError());
|
||||
free_music();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user