Mercurial > SDL_sound_CoreAudio
comparison decoders/voc.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 |
---|---|
35 * Please see the file LICENSE in the source's root directory. | 35 * Please see the file LICENSE in the source's root directory. |
36 * | 36 * |
37 * This file written by Ryan C. Gordon. (icculus@clutteredmind.org) | 37 * This file written by Ryan C. Gordon. (icculus@clutteredmind.org) |
38 */ | 38 */ |
39 | 39 |
40 #if (defined SOUND_SUPPORTS_VOC) | |
41 | |
40 #include <stdio.h> | 42 #include <stdio.h> |
41 #include <stdlib.h> | 43 #include <stdlib.h> |
42 #include <string.h> | 44 #include <string.h> |
43 #include <assert.h> | 45 #include <assert.h> |
44 #include "SDL_sound.h" | 46 #include "SDL_sound.h" |
45 | 47 |
46 #define __SDL_SOUND_INTERNAL__ | 48 #define __SDL_SOUND_INTERNAL__ |
47 #include "SDL_sound_internal.h" | 49 #include "SDL_sound_internal.h" |
48 | |
49 #if (!defined SOUND_SUPPORTS_VOC) | |
50 #error SOUND_SUPPORTS_VOC must be defined. | |
51 #endif | |
52 | |
53 | 50 |
54 static int VOC_init(void); | 51 static int VOC_init(void); |
55 static void VOC_quit(void); | 52 static void VOC_quit(void); |
56 static int VOC_open(Sound_Sample *sample, const char *ext); | 53 static int VOC_open(Sound_Sample *sample, const char *ext); |
57 static void VOC_close(Sound_Sample *sample); | 54 static void VOC_close(Sound_Sample *sample); |
482 } /* while */ | 479 } /* while */ |
483 | 480 |
484 return(v->bufpos); | 481 return(v->bufpos); |
485 } /* VOC_read */ | 482 } /* VOC_read */ |
486 | 483 |
484 #endif /* SOUND_SUPPORTS_VOC */ | |
487 | 485 |
488 /* end of voc.c ... */ | 486 /* end of voc.c ... */ |
489 |