mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-09 13:30:06 -05:00
audioconvert: improvements
This commit is contained in:
parent
2cfb206d7c
commit
0b4cef586f
8 changed files with 710 additions and 29 deletions
|
|
@ -633,9 +633,8 @@ static int schedule_mix(struct spa_node *_node)
|
|||
|
||||
if (layer > 0)
|
||||
conv_f32_s16(outb->ptr, port->port_id, out, buffer_size, stride);
|
||||
else {
|
||||
else
|
||||
fill_s16(outb->ptr, port->port_id, buffer_size, stride);
|
||||
}
|
||||
|
||||
return SPA_STATUS_HAVE_BUFFER;
|
||||
}
|
||||
|
|
@ -910,7 +909,6 @@ static int module_init(struct pw_module *module, struct pw_properties *propertie
|
|||
pw_core_add_listener(core, &impl->core_listener, &core_events, impl);
|
||||
pw_module_add_listener(module, &impl->module_listener, &module_events, impl);
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ struct pw_node_events {
|
|||
void (*process) (void *data);
|
||||
/** the node has a buffer to reuse */
|
||||
void (*reuse_buffer) (void *data, uint32_t port_id, uint32_t buffer_id);
|
||||
|
||||
/** the node driver finished processing */
|
||||
void (*finish) (void *data);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -659,6 +659,7 @@ static int handle_connect(struct pw_stream *stream)
|
|||
pw_node_set_active(impl->node, true);
|
||||
|
||||
pw_remote_export(stream->remote, impl->node);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -888,7 +889,6 @@ uint32_t pw_stream_get_node_id(struct pw_stream *stream)
|
|||
return stream->node_id;
|
||||
}
|
||||
|
||||
|
||||
int pw_stream_disconnect(struct pw_stream *stream)
|
||||
{
|
||||
struct stream *impl = SPA_CONTAINER_OF(stream, struct stream, this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue