A callback for asynchronous meta/policy event messages. The set * of defined events can be extended at any time. Also, server modules * may introduce additional message types so make sure that your * callback function ignores messages it doesn't know. \since * 0.9.15
Generic notification callback prototype
A generic callback for operation completion
Connect the context to the specified server. If server is NULL, * connect to the default server. This routine may but will not always * return synchronously on error. Use pa_context_set_state_callback() to * be notified when the connection is established. If flags doesn't have * PA_CONTEXT_NOAUTOSPAWN set and no specific server is specified or * accessible a new daemon is spawned. If api is non-NULL, the functions * specified in the structure are used when forking a new child * process. Returns negative on certain errors such as invalid state * or parameters.
Terminate the context connection immediately
Drain the context. If there is nothing to drain, the function returns NULL
Return the error number of the last failed operation
Tell the daemon to exit. The returned operation is unlikely to * complete successfully, since the daemon probably died before * returning a success notification
Return the client index this context is * identified in the server with. This is useful for usage with the * introspection functions, such as pa_context_get_client_info(). * Returns PA_INVALID_INDEX on error. \since 0.9.11
Return the protocol version of the library.
Return the server name this context is connected to.
Return the protocol version of the connected server. * Returns PA_INVALID_INDEX on error.
Return the current context status
Return the optimal block size for passing around audio buffers. It * is recommended to allocate buffers of the size returned here when * writing audio data to playback streams, if the latency constraints * permit this. It is not recommended writing larger blocks than this * because usually they will then be split up internally into chunks * of this size. It is not recommended writing smaller blocks than * this (unless required due to latency demands) because this * increases CPU usage. If ss is NULL you will be returned the * byte-exact tile size. if ss is invalid, (size_t) -1 will be * returned. If you pass a valid ss, then the tile size * will be rounded down to multiple of the frame size. This is * supposed to be used in a construct such as * pa_context_get_tile_size(pa_stream_get_context(s), * pa_stream_get_sample_spec(ss)); \since 0.9.20
Returns 1 when the connection is to a local daemon. Returns negative when no connection has been made yet.
Return non-zero if some data is pending to be written to the connection
Load the authentication cookie from a file. This function is primarily * meant for PulseAudio's own tunnel modules, which need to load the cookie * from a custom location. Applications don't usually need to care about the * cookie at all, but if it happens that you know what the authentication * cookie is and your application needs to load it from a non-standard * location, feel free to use this function. \since 5.0
Instantiate a new connection context with an abstract mainloop API * and an application name. It is recommended to use pa_context_new_with_proplist() * instead and specify some initial properties.
Instantiate a new connection context with an abstract mainloop API * and an application name, and specify the initial client property * list. \since 0.9.11
Update the property list of the client, remove entries. \since 0.9.11
Update the property list of the client, adding new entries. Please * note that it is highly recommended to set as many properties * initially via pa_context_new_with_proplist() as possible instead a * posteriori with this function, since that information may then be * used to route streams of the client to the right device. \since 0.9.11
Increase the reference counter of the context by one
Create a new timer event source for the specified time (wrapper * for mainloop->time_new). \since 0.9.16
Restart a running or expired timer event source (wrapper for * mainloop->time_restart). \since 0.9.16
Set the name of the default sink.
Set the name of the default source.
Set a callback function that is called whenever a meta/policy * control event is received. \since 0.9.15
Set a different application name for context on the server.
Set a callback function that is called whenever the context status changes
Decrease the reference counter of the context by one
An opaque connection context to a daemon