Mercurial > SDL_sound_CoreAudio
comparison decoders/mp3.c @ 64:40006625142a
Changes in preparation of autoconf support.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Mon, 24 Sep 2001 23:33:19 +0000 |
parents | b13fafb976be |
children | 25e515dfa18d |
comparison
equal
deleted
inserted
replaced
63:9669aa13d3e0 | 64:40006625142a |
---|---|
27 * Please see the file LICENSE in the source's root directory. | 27 * Please see the file LICENSE in the source's root directory. |
28 * | 28 * |
29 * This file written by Ryan C. Gordon. (icculus@clutteredmind.org) | 29 * This file written by Ryan C. Gordon. (icculus@clutteredmind.org) |
30 */ | 30 */ |
31 | 31 |
32 #ifdef SOUND_SUPPORTS_MP3 | |
33 | |
32 #include <stdio.h> | 34 #include <stdio.h> |
33 #include <stdlib.h> | 35 #include <stdlib.h> |
34 #include <string.h> | 36 #include <string.h> |
35 #include <assert.h> | 37 #include <assert.h> |
36 | 38 |
38 #include "SDL_sound.h" | 40 #include "SDL_sound.h" |
39 #include "extra_rwops.h" | 41 #include "extra_rwops.h" |
40 | 42 |
41 #define __SDL_SOUND_INTERNAL__ | 43 #define __SDL_SOUND_INTERNAL__ |
42 #include "SDL_sound_internal.h" | 44 #include "SDL_sound_internal.h" |
43 | |
44 #if (!defined SOUND_SUPPORTS_MP3) | |
45 #error SOUND_SUPPORTS_MP3 must be defined. | |
46 #endif | |
47 | 45 |
48 | 46 |
49 static int MP3_init(void); | 47 static int MP3_init(void); |
50 static void MP3_quit(void); | 48 static void MP3_quit(void); |
51 static int MP3_open(Sound_Sample *sample, const char *ext); | 49 static int MP3_open(Sound_Sample *sample, const char *ext); |
221 } /* if */ | 219 } /* if */ |
222 | 220 |
223 return(retval); | 221 return(retval); |
224 } /* MP3_read */ | 222 } /* MP3_read */ |
225 | 223 |
224 #endif /* SOUND_SUPPORTS_MP3 */ | |
225 | |
226 /* end of mp3.c ... */ | 226 /* end of mp3.c ... */ |
227 | 227 |