Mercurial > sdl-ios-xcode
diff src/audio/SDL_wave.c @ 2735:204be4fc2726
Final merge of Google Summer of Code 2008 work...
Port SDL 1.3 to the Nintendo DS
by Darren Alton, mentored by Sam Lantinga
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 27 Aug 2008 15:10:03 +0000 |
parents | 575d5c9d4db8 |
children | 99210400e8b9 |
line wrap: on
line diff
--- a/src/audio/SDL_wave.c Wed Aug 27 13:37:19 2008 +0000 +++ b/src/audio/SDL_wave.c Wed Aug 27 15:10:03 2008 +0000 @@ -462,8 +462,7 @@ } /* 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)); /* Decode the audio data format */ format = (WaveFMT *) chunk.data; @@ -564,8 +563,7 @@ *audio_buf = chunk.data; if (chunk.magic != DATA) headerDiff += lenread + 2 * sizeof(Uint32); - } - while (chunk.magic != DATA); + } while (chunk.magic != DATA); headerDiff += 2 * sizeof(Uint32); /* for the data chunk and len */ if (MS_ADPCM_encoded) {