Lines Matching defs:context
26 #include <pulse/context.h>
96 pa_context *context;
173 /* called from io context to read samples from the stream into our source */
191 pa_log("pa_stream_peek() failed: %s", pa_strerror(pa_context_errno(u->context)));
237 u->context = pa_context_new_with_proplist(u->thread_mainloop_api,
242 if (!u->context) {
243 pa_log("Failed to create libpulse context");
247 if (u->cookie_file && pa_context_load_cookie_from_file(u->context, u->cookie_file) != 0) {
252 pa_context_set_state_callback(u->context, context_state_cb, u);
253 if (pa_context_connect(u->context,
257 pa_log("Failed to connect libpulse context: %s", pa_strerror(pa_context_errno(u->context)));
288 if (u->context) {
289 pa_context_disconnect(u->context);
290 pa_context_unref(u->context);
291 u->context = NULL;
304 pa_log_error("Stream failed: %s", pa_strerror(pa_context_errno(u->context)));
369 u->stream = pa_stream_new_with_proplist(u->context,
378 pa_log_error("Could not create a stream: %s", pa_strerror(pa_context_errno(u->context)));
396 pa_log_debug("Could not create stream: %s", pa_strerror(pa_context_errno(u->context)));
421 pa_log_debug("Context failed with err %s.", pa_strerror(pa_context_errno(u->context)));
594 /* Runs in PA mainloop context */