Last active
July 30, 2018 12:18
-
-
Save illume/e0cf463d45b08a39986329aa245d4d98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/audio/SDL_wave.c b/src/audio/SDL_wave.c | |
index b4ad6c7..2d50486 100644 | |
--- a/src/audio/SDL_wave.c | |
+++ b/src/audio/SDL_wave.c | |
@@ -445,7 +445,7 @@ SDL_AudioSpec * SDL_LoadWAV_RW (SDL_RWops *src, int freesrc, | |
} | |
/* 2 Uint32's for chunk header+len, plus the lenread */ | |
headerDiff += lenread + 2 * sizeof(Uint32); | |
- } while ( (chunk.magic == FACT) || (chunk.magic == LIST) ); | |
+ } while ( (chunk.magic == FACT) || (chunk.magic == LIST) || (chunk.magic == BEXT) ); | |
/* Decode the audio data format */ | |
format = (WaveFMT *)chunk.data; | |
diff --git a/src/audio/SDL_wave.h b/src/audio/SDL_wave.h | |
index 53b12e7..23b733c 100644 | |
--- a/src/audio/SDL_wave.h | |
+++ b/src/audio/SDL_wave.h | |
@@ -30,6 +30,7 @@ | |
#define WAVE 0x45564157 /* "WAVE" */ | |
#define FACT 0x74636166 /* "fact" */ | |
#define LIST 0x5453494c /* "LIST" */ | |
+#define BEXT 0x74786562 /* "bext" */ | |
#define FMT 0x20746D66 /* "fmt " */ | |
#define DATA 0x61746164 /* "data" */ | |
#define PCM_CODE 0x0001 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment