Skip to content
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.

Commit

Permalink
Mix_LoadWav_RW: The magic for .voc files is "Crea", not "CREA".
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 23, 2018
1 parent d65c9d4 commit 7cad09d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ Mix_Chunk *Mix_LoadWAV_RW(SDL_RWops *src, int freesrc)
loaded = SDL_LoadWAV_RW(src, freesrc, &wavespec, (Uint8 **)&chunk->abuf, &chunk->alen);
} else if (SDL_memcmp(magic, "FORM", 4) == 0) {
loaded = Mix_LoadAIFF_RW(src, freesrc, &wavespec, (Uint8 **)&chunk->abuf, &chunk->alen);
} else if (SDL_memcmp(magic, "CREA", 4) == 0) {
} else if (SDL_memcmp(magic, "Crea", 4) == 0) {
loaded = Mix_LoadVOC_RW(src, freesrc, &wavespec, (Uint8 **)&chunk->abuf, &chunk->alen);
} else {
Mix_MusicType music_type = detect_music_type_from_magic(magic);
Expand Down

0 comments on commit 7cad09d

Please sign in to comment.