comparison decoders/mod.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 6252979e2453
comparison
equal deleted inserted replaced
63:9669aa13d3e0 64:40006625142a
26 * Please see the file LICENSE in the source's root directory, and the file 26 * Please see the file LICENSE in the source's root directory, and the file
27 * COPYING.LESSER in the mikmod subdirectory. 27 * COPYING.LESSER in the mikmod subdirectory.
28 * 28 *
29 * This file written by Torbjörn Andersson (d91tan@Update.UU.SE) 29 * This file written by Torbjörn Andersson (d91tan@Update.UU.SE)
30 */ 30 */
31
32 #ifdef SOUND_SUPPORTS_MOD
31 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 #include "mikmod.h" 39 #include "mikmod.h"
38 40
39 #define __SDL_SOUND_INTERNAL__ 41 #define __SDL_SOUND_INTERNAL__
40 #include "SDL_sound_internal.h" 42 #include "SDL_sound_internal.h"
41
42 #if (!defined SOUND_SUPPORTS_MOD)
43 #error SOUND_SUPPORTS_MOD must be defined.
44 #endif
45 43
46 static int MOD_init(void); 44 static int MOD_init(void);
47 static void MOD_quit(void); 45 static void MOD_quit(void);
48 static int MOD_open(Sound_Sample *sample, const char *ext); 46 static int MOD_open(Sound_Sample *sample, const char *ext);
49 static void MOD_close(Sound_Sample *sample); 47 static void MOD_close(Sound_Sample *sample);
264 return(0); 262 return(0);
265 } /* if */ 263 } /* if */
266 return((Uint32) VC_WriteBytes(internal->buffer, internal->buffer_size)); 264 return((Uint32) VC_WriteBytes(internal->buffer, internal->buffer_size));
267 } /* MOD_read */ 265 } /* MOD_read */
268 266
267 #endif /* SOUND_SUPPORTS_MOD */
268
269 269
270 /* end of mod.c ... */ 270 /* end of mod.c ... */
271 271