Mercurial > SDL_sound_CoreAudio
comparison decoders/aiff.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 |
---|---|
39 * Please see the file LICENSE in the source's root directory. | 39 * Please see the file LICENSE in the source's root directory. |
40 * | 40 * |
41 * This file was written by Torbjörn Andersson. (d91tan@Update.UU.SE) | 41 * This file was written by Torbjörn Andersson. (d91tan@Update.UU.SE) |
42 */ | 42 */ |
43 | 43 |
44 #ifdef SOUND_SUPPORTS_AIFF | |
45 | |
44 #include <stdio.h> | 46 #include <stdio.h> |
45 #include <stdlib.h> | 47 #include <stdlib.h> |
46 #include <string.h> | 48 #include <string.h> |
47 #include <assert.h> | 49 #include <assert.h> |
48 | 50 |
50 #include "SDL_endian.h" | 52 #include "SDL_endian.h" |
51 #include "SDL_sound.h" | 53 #include "SDL_sound.h" |
52 | 54 |
53 #define __SDL_SOUND_INTERNAL__ | 55 #define __SDL_SOUND_INTERNAL__ |
54 #include "SDL_sound_internal.h" | 56 #include "SDL_sound_internal.h" |
55 | |
56 #if (!defined SOUND_SUPPORTS_AIFF) | |
57 #error SOUND_SUPPORTS_AIFF must be defined. | |
58 #endif | |
59 | 57 |
60 static int AIFF_init(void); | 58 static int AIFF_init(void); |
61 static void AIFF_quit(void); | 59 static void AIFF_quit(void); |
62 static int AIFF_open(Sound_Sample *sample, const char *ext); | 60 static int AIFF_open(Sound_Sample *sample, const char *ext); |
63 static void AIFF_close(Sound_Sample *sample); | 61 static void AIFF_close(Sound_Sample *sample); |
386 sample->flags |= SOUND_SAMPLEFLAG_EAGAIN; | 384 sample->flags |= SOUND_SAMPLEFLAG_EAGAIN; |
387 | 385 |
388 return(retval); | 386 return(retval); |
389 } /* AIFF_read */ | 387 } /* AIFF_read */ |
390 | 388 |
389 #endif /* SOUND_SUPPORTS_AIFF */ | |
390 | |
391 | 391 |
392 /* end of aiff.c ... */ | 392 /* end of aiff.c ... */ |