mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
filter-chain: improve sofa plugin debug
This commit is contained in:
parent
dca11e6c41
commit
81a2a7087b
1 changed files with 3 additions and 3 deletions
|
|
@ -214,6 +214,8 @@ static void spatializer_reload(void * Instance)
|
|||
for (uint8_t i = 0; i < 3; i++)
|
||||
coords[i] = impl->port[3 + i][0];
|
||||
|
||||
pw_log_info("making spatializer with %f %f %f", coords[0], coords[2], coords[2]);
|
||||
|
||||
mysofa_s2c(coords);
|
||||
mysofa_getfilter_float(
|
||||
impl->sofa,
|
||||
|
|
@ -227,9 +229,8 @@ static void spatializer_reload(void * Instance)
|
|||
);
|
||||
|
||||
// TODO: make use of delay
|
||||
if ((left_delay != 0.0f || right_delay != 0.0f) && (!isnan(left_delay) || !isnan(right_delay))) {
|
||||
if ((left_delay != 0.0f || right_delay != 0.0f) && (!isnan(left_delay) || !isnan(right_delay)))
|
||||
pw_log_warn("delay dropped l: %f, r: %f", left_delay, right_delay);
|
||||
}
|
||||
|
||||
if (impl->l_conv[2])
|
||||
convolver_free(impl->l_conv[2]);
|
||||
|
|
@ -329,7 +330,6 @@ static void spatializer_cleanup(void * Instance)
|
|||
|
||||
static void spatializer_control_changed(void * Instance)
|
||||
{
|
||||
pw_log_info("control changed");
|
||||
spatializer_reload(Instance);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue