PipeWire
0.3.15
|
Data Structures | |
struct | buffer |
struct | queue |
struct | data |
struct | param |
struct | control |
struct | stream |
Macros | |
#define | NAME "stream" |
#define | MAX_BUFFERS 64 |
#define | MASK_BUFFERS (MAX_BUFFERS-1) |
#define | MAX_PORTS 1 |
#define | BUFFER_FLAG_MAPPED (1 << 0) |
#define | BUFFER_FLAG_QUEUED (1 << 1) |
#define | BUFFER_FLAG_ADDED (1 << 2) |
#define | PARAM_FLAG_LOCKED (1 << 0) |
Functions | |
SPA_EXPORT struct pw_stream * | pw_stream_new (struct pw_core *core, const char *name, struct pw_properties *props) |
SPA_EXPORT struct pw_stream * | pw_stream_new_simple (struct pw_loop *loop, const char *name, struct pw_properties *props, const struct pw_stream_events *events, void *data) |
const SPA_EXPORT char * | pw_stream_state_as_string (enum pw_stream_state state) |
SPA_EXPORT void | pw_stream_destroy (struct pw_stream *stream) |
SPA_EXPORT void | pw_stream_add_listener (struct pw_stream *stream, struct spa_hook *listener, const struct pw_stream_events *events, void *data) |
SPA_EXPORT enum pw_stream_state | pw_stream_get_state (struct pw_stream *stream, const char **error) |
const SPA_EXPORT char * | pw_stream_get_name (struct pw_stream *stream) |
SPA_EXPORT const struct pw_properties * | pw_stream_get_properties (struct pw_stream *stream) |
SPA_EXPORT int | pw_stream_update_properties (struct pw_stream *stream, const struct spa_dict *dict) |
SPA_EXPORT struct pw_core * | pw_stream_get_core (struct pw_stream *stream) |
SPA_EXPORT int | pw_stream_connect (struct pw_stream *stream, enum pw_direction direction, uint32_t target_id, enum pw_stream_flags flags, const struct spa_pod **params, uint32_t n_params) |
SPA_EXPORT uint32_t | pw_stream_get_node_id (struct pw_stream *stream) |
SPA_EXPORT int | pw_stream_disconnect (struct pw_stream *stream) |
SPA_EXPORT int | pw_stream_set_error (struct pw_stream *stream, int res, const char *error,...) |
SPA_EXPORT int | pw_stream_update_params (struct pw_stream *stream, const struct spa_pod **params, uint32_t n_params) |
SPA_EXPORT int | pw_stream_set_control (struct pw_stream *stream, uint32_t id, uint32_t n_values, float *values,...) |
Set control values. More... | |
SPA_EXPORT const struct pw_stream_control * | pw_stream_get_control (struct pw_stream *stream, uint32_t id) |
SPA_EXPORT int | pw_stream_set_active (struct pw_stream *stream, bool active) |
SPA_EXPORT int | pw_stream_get_time (struct pw_stream *stream, struct pw_time *time) |
SPA_EXPORT struct pw_buffer * | pw_stream_dequeue_buffer (struct pw_stream *stream) |
Get a buffer that can be filled for playback streams or consumed for capture streams. More... | |
SPA_EXPORT int | pw_stream_queue_buffer (struct pw_stream *stream, struct pw_buffer *buffer) |
Submit a buffer for playback or recycle a buffer for capture. More... | |
SPA_EXPORT int | pw_stream_flush (struct pw_stream *stream, bool drain) |
Flush a stream. More... | |
#define BUFFER_FLAG_ADDED (1 << 2) |
#define BUFFER_FLAG_MAPPED (1 << 0) |
#define BUFFER_FLAG_QUEUED (1 << 1) |
#define MASK_BUFFERS (MAX_BUFFERS-1) |
#define MAX_BUFFERS 64 |
#define MAX_PORTS 1 |
#define NAME "stream" |
#define PARAM_FLAG_LOCKED (1 << 0) |
SPA_EXPORT void pw_stream_add_listener | ( | struct pw_stream * | stream, |
struct spa_hook * | listener, | ||
const struct pw_stream_events * | events, | ||
void * | data | ||
) |
SPA_EXPORT int pw_stream_connect | ( | struct pw_stream * | stream, |
enum pw_direction | direction, | ||
uint32_t | target_id, | ||
enum pw_stream_flags | flags, | ||
const struct spa_pod ** | params, | ||
uint32_t | n_params | ||
) |
References NAME, PW_DIRECTION_INPUT, pw_log::pw_log_debug, and res.
Get a buffer that can be filled for playback streams or consumed for capture streams.
References res.
SPA_EXPORT void pw_stream_destroy | ( | struct pw_stream * | stream | ) |
References NAME, pw_log::pw_log_debug, and pw_stream::pw_stream_disconnect().
SPA_EXPORT int pw_stream_disconnect | ( | struct pw_stream * | stream | ) |
SPA_EXPORT int pw_stream_flush | ( | struct pw_stream * | stream, |
bool | drain | ||
) |
Flush a stream.
When drain is true, the drained callback will be called when all data is played or recorded
References pw_loop_invoke.
SPA_EXPORT const struct pw_stream_control* pw_stream_get_control | ( | struct pw_stream * | stream, |
uint32_t | id | ||
) |
SPA_EXPORT struct pw_core* pw_stream_get_core | ( | struct pw_stream * | stream | ) |
const SPA_EXPORT char* pw_stream_get_name | ( | struct pw_stream * | stream | ) |
SPA_EXPORT uint32_t pw_stream_get_node_id | ( | struct pw_stream * | stream | ) |
SPA_EXPORT const struct pw_properties* pw_stream_get_properties | ( | struct pw_stream * | stream | ) |
SPA_EXPORT enum pw_stream_state pw_stream_get_state | ( | struct pw_stream * | stream, |
const char ** | error | ||
) |
References pw_time::delay, NAME, pw_time::now, pw_log::pw_log_trace, pw_time::queued, pw_time::rate, pw_time::ticks, and stream::time.
SPA_EXPORT struct pw_stream* pw_stream_new | ( | struct pw_core * | core, |
const char * | name, | ||
struct pw_properties * | props | ||
) |
SPA_EXPORT struct pw_stream* pw_stream_new_simple | ( | struct pw_loop * | loop, |
const char * | name, | ||
struct pw_properties * | props, | ||
const struct pw_stream_events * | events, | ||
void * | data | ||
) |
References pw_context_new(), pw_properties::pw_properties_new(), and res.
Submit a buffer for playback or recycle a buffer for capture.
References buffer::id, NAME, pw_log::pw_log_trace, and res.
SPA_EXPORT int pw_stream_set_active | ( | struct pw_stream * | stream, |
bool | active | ||
) |
References NAME, pw_impl_node_set_active(), and pw_log::pw_log_debug.
SPA_EXPORT int pw_stream_set_control | ( | struct pw_stream * | stream, |
uint32_t | id, | ||
uint32_t | n_values, | ||
float * | values, | ||
... | |||
) |
Set control values.
References NAME, pw_log::pw_log_debug, va_start(), and control::values.
SPA_EXPORT int pw_stream_set_error | ( | struct pw_stream * | stream, |
int | res, | ||
const char * | error, | ||
... | |||
) |
References args, pw_proxy_error(), r, res, va_end(), and va_start().
const SPA_EXPORT char* pw_stream_state_as_string | ( | enum pw_stream_state | state | ) |
SPA_EXPORT int pw_stream_update_params | ( | struct pw_stream * | stream, |
const struct spa_pod ** | params, | ||
uint32_t | n_params | ||
) |
References NAME, pw_log::pw_log_debug, and res.
SPA_EXPORT int pw_stream_update_properties | ( | struct pw_stream * | stream, |
const struct spa_dict * | dict | ||
) |
References pw_impl_node_update_properties(), pw_properties::pw_properties_update(), and res.