comparison src/audio/esd/SDL_esdaudio.c @ 1361:19418e4422cb

New configure-based build system. Still work in progress, but much improved
author Sam Lantinga <slouken@libsdl.org>
date Thu, 16 Feb 2006 10:11:48 +0000
parents c71e05b4dc2e
children e440d5c488c1
comparison
equal deleted inserted replaced
1360:70a9cfb4cf1b 1361:19418e4422cb
28 28
29 #include <esd.h> 29 #include <esd.h>
30 30
31 #include "SDL_timer.h" 31 #include "SDL_timer.h"
32 #include "SDL_audio.h" 32 #include "SDL_audio.h"
33 #include "SDL_audiomem.h" 33 #include "../SDL_audiomem.h"
34 #include "SDL_audio_c.h" 34 #include "../SDL_audio_c.h"
35 #include "SDL_audiodev_c.h" 35 #include "../SDL_audiodev_c.h"
36 #include "SDL_esdaudio.h" 36 #include "SDL_esdaudio.h"
37 37
38 #ifdef ESD_DYNAMIC 38 #ifdef SDL_AUDIO_DRIVER_ESD_DYNAMIC
39 #include "SDL_name.h" 39 #include "SDL_name.h"
40 #include "SDL_loadso.h" 40 #include "SDL_loadso.h"
41 #else 41 #else
42 #define SDL_NAME(X) X 42 #define SDL_NAME(X) X
43 #endif 43 #endif
50 static void ESD_WaitAudio(_THIS); 50 static void ESD_WaitAudio(_THIS);
51 static void ESD_PlayAudio(_THIS); 51 static void ESD_PlayAudio(_THIS);
52 static Uint8 *ESD_GetAudioBuf(_THIS); 52 static Uint8 *ESD_GetAudioBuf(_THIS);
53 static void ESD_CloseAudio(_THIS); 53 static void ESD_CloseAudio(_THIS);
54 54
55 #ifdef ESD_DYNAMIC 55 #ifdef SDL_AUDIO_DRIVER_ESD_DYNAMIC
56 56
57 static const char *esd_library = ESD_DYNAMIC; 57 static const char *esd_library = SDL_AUDIO_DRIVER_ESD_DYNAMIC;
58 static void *esd_handle = NULL; 58 static void *esd_handle = NULL;
59 static int esd_loaded = 0; 59 static int esd_loaded = 0;
60 60
61 static int (*SDL_NAME(esd_open_sound))( const char *host ); 61 static int (*SDL_NAME(esd_open_sound))( const char *host );
62 static int (*SDL_NAME(esd_close))( int esd ); 62 static int (*SDL_NAME(esd_close))( int esd );
110 static int LoadESDLibrary(void) 110 static int LoadESDLibrary(void)
111 { 111 {
112 return 0; 112 return 0;
113 } 113 }
114 114
115 #endif /* ESD_DYNAMIC */ 115 #endif /* SDL_AUDIO_DRIVER_ESD_DYNAMIC */
116 116
117 /* Audio driver bootstrap functions */ 117 /* Audio driver bootstrap functions */
118 118
119 static int Audio_Available(void) 119 static int Audio_Available(void)
120 { 120 {