Mercurial > SDL_sound_CoreAudio
comparison decoders/raw.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 | 6d9fdec2f708 |
comparison
equal
deleted
inserted
replaced
63:9669aa13d3e0 | 64:40006625142a |
---|---|
36 * Please see the file LICENSE in the source's root directory. | 36 * Please see the file LICENSE in the source's root directory. |
37 * | 37 * |
38 * This file written by Ryan C. Gordon. (icculus@clutteredmind.org) | 38 * This file written by Ryan C. Gordon. (icculus@clutteredmind.org) |
39 */ | 39 */ |
40 | 40 |
41 #ifdef SOUND_SUPPORTS_RAW | |
42 | |
41 #include <stdio.h> | 43 #include <stdio.h> |
42 #include <stdlib.h> | 44 #include <stdlib.h> |
43 #include <string.h> | 45 #include <string.h> |
44 #include <assert.h> | 46 #include <assert.h> |
45 #include "SDL_sound.h" | 47 #include "SDL_sound.h" |
46 | 48 |
47 #define __SDL_SOUND_INTERNAL__ | 49 #define __SDL_SOUND_INTERNAL__ |
48 #include "SDL_sound_internal.h" | 50 #include "SDL_sound_internal.h" |
49 | |
50 #if (!defined SOUND_SUPPORTS_RAW) | |
51 #error SOUND_SUPPORTS_RAW must be defined. | |
52 #endif | |
53 | 51 |
54 | 52 |
55 static int RAW_init(void); | 53 static int RAW_init(void); |
56 static void RAW_quit(void); | 54 static void RAW_quit(void); |
57 static int RAW_open(Sound_Sample *sample, const char *ext); | 55 static int RAW_open(Sound_Sample *sample, const char *ext); |
154 sample->flags |= SOUND_SAMPLEFLAG_EAGAIN; | 152 sample->flags |= SOUND_SAMPLEFLAG_EAGAIN; |
155 | 153 |
156 return(retval); | 154 return(retval); |
157 } /* RAW_read */ | 155 } /* RAW_read */ |
158 | 156 |
157 #endif /* SOUND_SUPPORTS_RAW */ | |
158 | |
159 | 159 |
160 /* end of raw.c ... */ | 160 /* end of raw.c ... */ |
161 | 161 |