Mercurial > SDL_sound_CoreAudio
comparison decoders/skeleton.c @ 103:706ec5842737
Updated for autoconf change, and placed #error messages so people don't
build this file.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 03 Oct 2001 18:15:25 +0000 |
parents | 6d9fdec2f708 |
children | 40de367eb59e |
comparison
equal
deleted
inserted
replaced
102:72502bed0aef | 103:706ec5842737 |
---|---|
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 | 32 #error DO NOT COMPILE THIS. |
33 #error This is an example decoder skeleton. | |
34 #error You should base your code on this file, and remove these error lines | |
35 #error from your version. | |
36 | |
37 #include "SDL_sound.h" | |
33 | 38 |
34 #define __SDL_SOUND_INTERNAL__ | 39 #define __SDL_SOUND_INTERNAL__ |
35 #include "SDL_sound_internal.h" | 40 #include "SDL_sound_internal.h" |
41 | |
42 #ifdef SOUND_SUPPORTS_FMT | |
36 | 43 |
37 #include <stdio.h> | 44 #include <stdio.h> |
38 #include <stdlib.h> | 45 #include <stdlib.h> |
39 #include <string.h> | 46 #include <string.h> |
40 #include <assert.h> | 47 #include <assert.h> |
41 #include "SDL_sound.h" | |
42 | |
43 | 48 |
44 static int FMT_init(void); | 49 static int FMT_init(void); |
45 static void FMT_quit(void); | 50 static void FMT_quit(void); |
46 static int FMT_open(Sound_Sample *sample, const char *ext); | 51 static int FMT_open(Sound_Sample *sample, const char *ext); |
47 static void FMT_close(Sound_Sample *sample); | 52 static void FMT_close(Sound_Sample *sample); |