mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
small cleanups
This commit is contained in:
parent
b160d81d2f
commit
7bb0e4da85
6 changed files with 25 additions and 19 deletions
|
|
@ -33,6 +33,8 @@
|
|||
|
||||
#define M_PI_M2 ( M_PI + M_PI )
|
||||
|
||||
#define BUFFER_SAMPLES 48
|
||||
|
||||
struct type {
|
||||
uint32_t prop_volume;
|
||||
uint32_t io_prop_volume;
|
||||
|
|
@ -282,7 +284,7 @@ static int impl_port_enum_params(struct spa_node *node,
|
|||
|
||||
param = spa_pod_builder_object(builder,
|
||||
id, t->param_buffers.Buffers,
|
||||
":", t->param_buffers.size, "iru", 32,
|
||||
":", t->param_buffers.size, "iru", BUFFER_SAMPLES * sizeof(float),
|
||||
SPA_POD_PROP_MIN_MAX(32, 4096),
|
||||
":", t->param_buffers.stride, "i", 0,
|
||||
":", t->param_buffers.buffers, "iru", 1,
|
||||
|
|
|
|||
|
|
@ -1184,8 +1184,9 @@ do_join_graphs(struct spa_loop *loop,
|
|||
in_graph = in_root->graph;
|
||||
out_graph = out_root->graph;
|
||||
|
||||
pw_log_debug("link %p: roots %p/%p graphs %p/%p", this,
|
||||
in_root, out_root, in_graph, out_graph);
|
||||
pw_log_debug("link %p: roots %p/%p graphs %p/%p %d/%d", this,
|
||||
in_root, out_root, in_graph, out_graph,
|
||||
in_graph->flags, out_graph->flags);
|
||||
|
||||
if (in_graph != out_graph) {
|
||||
struct spa_graph *src, *dst;
|
||||
|
|
|
|||
|
|
@ -418,6 +418,9 @@ static void check_properties(struct pw_node *node)
|
|||
SPA_FLAG_SET(impl->driver_graph.flags, SPA_GRAPH_FLAG_DRIVER);
|
||||
else
|
||||
SPA_FLAG_UNSET(impl->driver_graph.flags, SPA_GRAPH_FLAG_DRIVER);
|
||||
|
||||
pw_log_debug("node %p: graph %p driver:%d", node, &impl->driver_graph, node->driver);
|
||||
|
||||
}
|
||||
|
||||
static inline int driver_impl_finish(void *data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue