Lines Matching refs: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_suspend))(void);
69 static int (*SDL_NAME(arts_suspended))(void);
70 static const char *(*SDL_NAME(arts_error_text))(int errorcode);
76 { "arts_init", (void **)&SDL_NAME(arts_init) },
77 { "arts_free", (void **)&SDL_NAME(arts_free) },
78 { "arts_play_stream", (void **)&SDL_NAME(arts_play_stream) },
79 { "arts_stream_set", (void **)&SDL_NAME(arts_stream_set) },
80 { "arts_stream_get", (void **)&SDL_NAME(arts_stream_get) },
81 { "arts_write", (void **)&SDL_NAME(arts_write) },
82 { "arts_close_stream", (void **)&SDL_NAME(arts_close_stream) },
83 { "arts_suspend", (void **)&SDL_NAME(arts_suspend) },
84 { "arts_suspended", (void **)&SDL_NAME(arts_suspended) },
85 { "arts_error_text", (void **)&SDL_NAME(arts_error_text) },
136 while ( (!SDL_NAME(arts_suspended)()) && (SDL_GetTicks() < abortms) ) {
137 if ( SDL_NAME(arts_suspend)() ) {
142 return SDL_NAME(arts_suspended)();
152 if ( SDL_NAME(arts_init)() == 0 ) {
156 stream2=SDL_NAME(arts_play_stream)(44100, 16, 2, "SDL");
157 SDL_NAME(arts_write)(stream2, "", 0);
158 SDL_NAME(arts_close_stream)(stream2);
161 SDL_NAME(arts_free)();
243 written = SDL_NAME(arts_write)(stream, mixbuf, mixlen);
271 SDL_NAME(arts_close_stream)(stream);
274 SDL_NAME(arts_free)();
319 error_code = SDL_NAME(arts_init)();
321 SDL_SetError("Unable to initialize ARTS: %s", SDL_NAME(arts_error_text)(error_code));
328 stream = SDL_NAME(arts_play_stream)(spec->freq, bits, spec->channels, "SDL");
342 SDL_NAME(arts_stream_set)(stream, ARTS_P_PACKET_SETTINGS, frag_spec);
344 SDL_NAME(arts_stream_set)(stream, ARTS_P_PACKET_SIZE, frag_spec&0xffff);
345 SDL_NAME(arts_stream_set)(stream, ARTS_P_PACKET_COUNT, frag_spec>>16);
347 spec->size = SDL_NAME(arts_stream_get)(stream, ARTS_P_PACKET_SIZE);