comparison decoders/skeleton.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
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_FMT
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 #include "SDL_sound.h" 38 #include "SDL_sound.h"
37 39
38 #define __SDL_SOUND_INTERNAL__ 40 #define __SDL_SOUND_INTERNAL__
39 #include "SDL_sound_internal.h" 41 #include "SDL_sound_internal.h"
40
41 #if (!defined SOUND_SUPPORTS_FMT)
42 #error SOUND_SUPPORTS_FMT must be defined.
43 #endif
44 42
45 43
46 static int FMT_init(void); 44 static int FMT_init(void);
47 static void FMT_quit(void); 45 static void FMT_quit(void);
48 static int FMT_open(Sound_Sample *sample, const char *ext); 46 static int FMT_open(Sound_Sample *sample, const char *ext);
133 (or whatever. retval == number of bytes you put in internal->buffer). 131 (or whatever. retval == number of bytes you put in internal->buffer).
134 132
135 return(retval); 133 return(retval);
136 } /* FMT_read */ 134 } /* FMT_read */
137 135
136 #endif /* SOUND_SUPPORTS_FMT */
137
138 138
139 /* end of fmt.c ... */ 139 /* end of fmt.c ... */
140 140