From 48670833d70fce63b1bd6b9d43526ee4bf4c5a59 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 22 May 2018 20:56:43 -0400 Subject: [PATCH] Mix_LoadWav_RW: The magic for .voc files is "Crea", not "CREA". --- mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mixer.c b/mixer.c index aebfd98e..19392b4a 100644 --- a/mixer.c +++ b/mixer.c @@ -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);