Mercurial > SDL_sound_CoreAudio
comparison decoders/wav.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 |
---|---|
25 * | 25 * |
26 * Please see the file LICENSE in the source's root directory. | 26 * Please see the file LICENSE in the source's root directory. |
27 * | 27 * |
28 * This file written by Ryan C. Gordon. (icculus@clutteredmind.org) | 28 * This file written by Ryan C. Gordon. (icculus@clutteredmind.org) |
29 */ | 29 */ |
30 | |
31 #ifdef SOUND_SUPPORTS_WAV | |
30 | 32 |
31 #include <stdio.h> | 33 #include <stdio.h> |
32 #include <stdlib.h> | 34 #include <stdlib.h> |
33 #include <string.h> | 35 #include <string.h> |
34 #include <assert.h> | 36 #include <assert.h> |
35 #include "SDL_sound.h" | 37 #include "SDL_sound.h" |
36 | 38 |
37 #define __SDL_SOUND_INTERNAL__ | 39 #define __SDL_SOUND_INTERNAL__ |
38 #include "SDL_sound_internal.h" | 40 #include "SDL_sound_internal.h" |
39 | |
40 #if (!defined SOUND_SUPPORTS_WAV) | |
41 #error SOUND_SUPPORTS_WAV must be defined. | |
42 #endif | |
43 | 41 |
44 static int WAV_init(void); | 42 static int WAV_init(void); |
45 static void WAV_quit(void); | 43 static void WAV_quit(void); |
46 static int WAV_open(Sound_Sample *sample, const char *ext); | 44 static int WAV_open(Sound_Sample *sample, const char *ext); |
47 static void WAV_close(Sound_Sample *sample); | 45 static void WAV_close(Sound_Sample *sample); |
277 sample->flags |= SOUND_SAMPLEFLAG_EAGAIN; | 275 sample->flags |= SOUND_SAMPLEFLAG_EAGAIN; |
278 | 276 |
279 return(retval); | 277 return(retval); |
280 } /* WAV_read */ | 278 } /* WAV_read */ |
281 | 279 |
280 #endif /* SOUND_SUPPORTS_WAV */ | |
282 | 281 |
283 /* end of wav.c ... */ | 282 /* end of wav.c ... */ |
284 | 283 |