Lines Matching defs:SDL_NAME
39 #include "SDL_name.h"
42 #define SDL_NAME(X) X
61 static int (*SDL_NAME(arts_init))(void);
62 static void (*SDL_NAME(arts_free))(void);
63 static arts_stream_t (*SDL_NAME(arts_play_stream))(int rate, int bits, int channels, const char *name);
64 static int (*SDL_NAME(arts_stream_set))(arts_stream_t s, arts_parameter_t param, int value);
65 static int (*SDL_NAME(arts_stream_get))(arts_stream_t s, arts_parameter_t param);
66 static int (*SDL_NAME(arts_write))(arts_stream_t s, const void *buffer, int count);
67 static void (*SDL_NAME(arts_close_stream))(arts_stream_t s);
68 static int (*SDL_NAME(arts_suspended))(void);
69 static const char *(*SDL_NAME(arts_error_text))(int errorcode);
75 { "arts_init", (void **)&SDL_NAME(arts_init) },
76 { "arts_free", (void **)&SDL_NAME(arts_free) },
77 { "arts_play_stream", (void **)&SDL_NAME(arts_play_stream) },
78 { "arts_stream_set", (void **)&SDL_NAME(arts_stream_set) },
79 { "arts_stream_get", (void **)&SDL_NAME(arts_stream_get) },
80 { "arts_write", (void **)&SDL_NAME(arts_write) },
81 { "arts_close_stream", (void **)&SDL_NAME(arts_close_stream) },
82 { "arts_suspended", (void **)&SDL_NAME(arts_suspended) },
83 { "arts_error_text", (void **)&SDL_NAME(arts_error_text) },
138 if ( SDL_NAME(arts_init)() == 0 ) {
139 if ( SDL_NAME(arts_suspended)() ) {
142 stream2=SDL_NAME(arts_play_stream)(44100, 16, 2, "SDL");
143 SDL_NAME(arts_write)(stream2, "", 0);
144 SDL_NAME(arts_close_stream)(stream2);
147 SDL_NAME(arts_free)();
229 written = SDL_NAME(arts_write)(stream, mixbuf, mixlen);
257 SDL_NAME(arts_close_stream)(stream);
260 SDL_NAME(arts_free)();
305 error_code = SDL_NAME(arts_init)();
307 SDL_SetError("Unable to initialize ARTS: %s", SDL_NAME(arts_error_text)(error_code));
310 if ( ! SDL_NAME(arts_suspended)() ) {
314 stream = SDL_NAME(arts_play_stream)(spec->freq, bits, spec->channels, "SDL");
328 SDL_NAME(arts_stream_set)(stream, ARTS_P_PACKET_SETTINGS, frag_spec);
330 SDL_NAME(arts_stream_set)(stream, ARTS_P_PACKET_SIZE, frag_spec&0xffff);
331 SDL_NAME(arts_stream_set)(stream, ARTS_P_PACKET_COUNT, frag_spec>>16);
333 spec->size = SDL_NAME(arts_stream_get)(stream, ARTS_P_PACKET_SIZE);