mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
module-ffado: remove hardcoded quantum_limit
This commit is contained in:
parent
4bb3e292c5
commit
8e95f1a575
1 changed files with 5 additions and 2 deletions
|
|
@ -505,7 +505,7 @@ static void make_stream_ports(struct stream *s)
|
||||||
|
|
||||||
port->latency[s->direction] = latency;
|
port->latency[s->direction] = latency;
|
||||||
port->is_midi = is_midi;
|
port->is_midi = is_midi;
|
||||||
port->buffer = calloc(sizeof(float), impl->quantum_limit);
|
port->buffer = calloc(impl->quantum_limit, sizeof(float));
|
||||||
if (port->buffer == NULL) {
|
if (port->buffer == NULL) {
|
||||||
pw_log_error("Can't create port buffer: %m");
|
pw_log_error("Can't create port buffer: %m");
|
||||||
return;
|
return;
|
||||||
|
|
@ -1024,9 +1024,12 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
||||||
"latency.internal.input", 0);
|
"latency.internal.input", 0);
|
||||||
impl->output_latency = pw_properties_get_uint32(props,
|
impl->output_latency = pw_properties_get_uint32(props,
|
||||||
"latency.internal.output", 0);
|
"latency.internal.output", 0);
|
||||||
impl->quantum_limit = 8192;
|
|
||||||
impl->utils = pw_thread_utils_get();
|
impl->utils = pw_thread_utils_get();
|
||||||
|
|
||||||
|
impl->quantum_limit = pw_properties_get_uint32(
|
||||||
|
pw_context_get_properties(context),
|
||||||
|
"default.clock.quantum-limit", 8192u);
|
||||||
|
|
||||||
impl->sink.props = pw_properties_new(NULL, NULL);
|
impl->sink.props = pw_properties_new(NULL, NULL);
|
||||||
impl->source.props = pw_properties_new(NULL, NULL);
|
impl->source.props = pw_properties_new(NULL, NULL);
|
||||||
if (impl->source.props == NULL || impl->sink.props == NULL) {
|
if (impl->source.props == NULL || impl->sink.props == NULL) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue