24 #include <sys/types.h>
29 #include <pulse/cdecl.h>
30 #include <pulse/version.h>
123 const char *stream_name,
Constants and routines for channel mapping handling.
enum pa_stream_direction pa_stream_direction_t
The direction of a pa_stream object.
Constants and routines for sample type handling.
uint64_t pa_usec_t
Type for usec specifications (unsigned).
Definition: sample.h:264
int pa_simple_drain(pa_simple *s, int *error)
Wait until all data already written is played by the daemon.
pa_usec_t pa_simple_get_latency(pa_simple *s, int *error)
Return the playback or record latency.
int pa_simple_read(pa_simple *s, void *data, size_t bytes, int *error)
Read some data from the server.
int pa_simple_flush(pa_simple *s, int *error)
Flush the playback or record buffer.
void pa_simple_free(pa_simple *s)
Close and free the connection to the server.
pa_simple * pa_simple_new(const char *server, const char *name, pa_stream_direction_t dir, const char *dev, const char *stream_name, const pa_sample_spec *ss, const pa_channel_map *map, const pa_buffer_attr *attr, int *error)
Create a new connection to the server.
int pa_simple_write(pa_simple *s, const void *data, size_t bytes, int *error)
Write some data to the server.
Playback and record buffer metrics.
Definition: def.h:389
A channel map which can be used to attach labels to specific channels of a stream.
Definition: channelmap.h:264
A sample format and attribute specification.
Definition: sample.h:252
An opaque simple connection object.