Mercurial > sdl-ios-xcode
diff src/audio/SDL_wave.c @ 1818:7995cc87b777
Fixed some bugs in string handling
Cleaned up error message code, UTF-8 is used instead of UCS2
Added detection for MPEG Layer 3 audio for more informative errors.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 11 May 2006 21:03:23 +0000 |
parents | 97d0966f4bf7 |
children | 782fd950bd46 c121d94672cb 96ce26f24b01 |
line wrap: on
line diff
--- a/src/audio/SDL_wave.c Thu May 11 15:52:41 2006 +0000 +++ b/src/audio/SDL_wave.c Thu May 11 21:03:23 2006 +0000 @@ -478,6 +478,11 @@ } IMA_ADPCM_encoded = 1; break; + case MP3_CODE: + SDL_SetError("MPEG Layer 3 data not supported", + SDL_SwapLE16(format->encoding)); + was_error = 1; + goto done; default: SDL_SetError("Unknown WAVE data format: 0x%.4x", SDL_SwapLE16(format->encoding));