Home | History | Annotate | Download | only in pulse

Lines Matching refs:SDL_NAME

44 #include "SDL_name.h"
47 #define SDL_NAME(X) X
68 static pa_simple* (*SDL_NAME(pa_simple_new))(
79 static void (*SDL_NAME(pa_simple_free))(pa_simple *s);
81 static pa_channel_map* (*SDL_NAME(pa_channel_map_init_auto))(
87 static pa_mainloop * (*SDL_NAME(pa_mainloop_new))(void);
88 static pa_mainloop_api * (*SDL_NAME(pa_mainloop_get_api))(pa_mainloop *m);
89 static int (*SDL_NAME(pa_mainloop_iterate))(pa_mainloop *m, int block, int *retval);
90 static void (*SDL_NAME(pa_mainloop_free))(pa_mainloop *m);
92 static pa_operation_state_t (*SDL_NAME(pa_operation_get_state))(pa_operation *o);
93 static void (*SDL_NAME(pa_operation_cancel))(pa_operation *o);
94 static void (*SDL_NAME(pa_operation_unref))(pa_operation *o);
96 static pa_context * (*SDL_NAME(pa_context_new))(
98 static int (*SDL_NAME(pa_context_connect))(
101 static pa_context_state_t (*SDL_NAME(pa_context_get_state))(pa_context *c);
102 static void (*SDL_NAME(pa_context_disconnect))(pa_context *c);
103 static void (*SDL_NAME(pa_context_unref))(pa_context *c);
105 static pa_stream * (*SDL_NAME(pa_stream_new))(pa_context *c,
107 static int (*SDL_NAME(pa_stream_connect_playback))(pa_stream *s, const char *dev,
110 static pa_stream_state_t (*SDL_NAME(pa_stream_get_state))(pa_stream *s);
111 static size_t (*SDL_NAME(pa_stream_writable_size))(pa_stream *s);
112 static int (*SDL_NAME(pa_stream_write))(pa_stream *s, const void *data, size_t nbytes,
114 static pa_operation * (*SDL_NAME(pa_stream_drain))(pa_stream *s,
116 static int (*SDL_NAME(pa_stream_disconnect))(pa_stream *s);
117 static void (*SDL_NAME(pa_stream_unref))(pa_stream *s);
118 static pa_operation* (*SDL_NAME(pa_context_set_name))(pa_context *c,
126 (void **)&SDL_NAME(pa_simple_new) },
128 (void **)&SDL_NAME(pa_simple_free) },
130 (void **)&SDL_NAME(pa_channel_map_init_auto) },
132 (void **)&SDL_NAME(pa_mainloop_new) },
134 (void **)&SDL_NAME(pa_mainloop_get_api) },
136 (void **)&SDL_NAME(pa_mainloop_iterate) },
138 (void **)&SDL_NAME(pa_mainloop_free) },
140 (void **)&SDL_NAME(pa_operation_get_state) },
142 (void **)&SDL_NAME(pa_operation_cancel) },
144 (void **)&SDL_NAME(pa_operation_unref) },
146 (void **)&SDL_NAME(pa_context_new) },
148 (void **)&SDL_NAME(pa_context_connect) },
150 (void **)&SDL_NAME(pa_context_get_state) },
152 (void **)&SDL_NAME(pa_context_disconnect) },
154 (void **)&SDL_NAME(pa_context_unref) },
156 (void **)&SDL_NAME(pa_stream_new) },
158 (void **)&SDL_NAME(pa_stream_connect_playback) },
160 (void **)&SDL_NAME(pa_stream_get_state) },
162 (void **)&SDL_NAME(pa_stream_writable_size) },
164 (void **)&SDL_NAME(pa_stream_write) },
166 (void **)&SDL_NAME(pa_stream_drain) },
168 (void **)&SDL_NAME(pa_stream_disconnect) },
170 (void **)&SDL_NAME(pa_stream_unref) },
172 (void **)&SDL_NAME(pa_context_set_name) },
235 connection = SDL_NAME(pa_simple_new)(
248 SDL_NAME(pa_simple_free)(connection);
308 if (SDL_NAME(pa_context_get_state)(context) != PA_CONTEXT_READY ||
309 SDL_NAME(pa_stream_get_state)(stream) != PA_STREAM_READY ||
310 SDL_NAME(pa_mainloop_iterate)(mainloop, 1, NULL) < 0) {
314 size = SDL_NAME(pa_stream_writable_size)(stream);
323 if (SDL_NAME(pa_stream_write)(stream, mixbuf, mixlen, NULL, 0LL, PA_SEEK_RELATIVE) < 0)
339 SDL_NAME(pa_stream_disconnect)(stream);
340 SDL_NAME(pa_stream_unref)(stream);
344 SDL_NAME(pa_context_disconnect)(context);
345 SDL_NAME(pa_context_unref)(context);
349 SDL_NAME(pa_mainloop_free)(mainloop);
396 SDL_NAME(pa_context_set_name)(context, this->hidden->caption,
410 o = SDL_NAME(pa_stream_drain)(stream, stream_drain_complete, NULL);
414 while (SDL_NAME(pa_operation_get_state)(o) != PA_OPERATION_DONE) {
415 if (SDL_NAME(pa_context_get_state)(context) != PA_CONTEXT_READY ||
416 SDL_NAME(pa_stream_get_state)(stream) != PA_STREAM_READY ||
417 SDL_NAME(pa_mainloop_iterate)(mainloop, 1, NULL) < 0) {
418 SDL_NAME(pa_operation_cancel)(o);
422 SDL_NAME(pa_operation_unref)(o);
491 SDL_NAME(pa_channel_map_init_auto)(
495 if (!(mainloop = SDL_NAME(pa_mainloop_new)())) {
507 mainloop_api = SDL_NAME(pa_mainloop_get_api)(mainloop);
508 if (!(context = SDL_NAME(pa_context_new)(mainloop_api,
516 if (SDL_NAME(pa_context_connect)(context, NULL, 0, NULL) < 0) {
523 if (SDL_NAME(pa_mainloop_iterate)(mainloop, 1, NULL) < 0) {
528 state = SDL_NAME(pa_context_get_state)(context);
536 stream = SDL_NAME(pa_stream_new)(
548 if (SDL_NAME(pa_stream_connect_playback)(stream, NULL, &paattr, flags,
556 if (SDL_NAME(pa_mainloop_iterate)(mainloop, 1, NULL) < 0) {
561 state = SDL_NAME(pa_stream_get_state)(stream);