mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-20 14:33:04 -04:00
mixer-dsp: only ramp down when io was removed
Only ramp down when the IO was removed. We don't want to ramp down because there was no buffer because of an xrun, because after the ramp down, the port is removed from the mix ports and stays silent.
This commit is contained in:
parent
13c5e3c756
commit
b6fc57a299
1 changed files with 1 additions and 1 deletions
|
|
@ -933,7 +933,7 @@ static int impl_node_process(void *object)
|
||||||
if (size >= sizeof(float))
|
if (size >= sizeof(float))
|
||||||
inport->history[0] = s[size/sizeof(float)-1];
|
inport->history[0] = s[size/sizeof(float)-1];
|
||||||
inio->status = SPA_STATUS_NEED_DATA;
|
inio->status = SPA_STATUS_NEED_DATA;
|
||||||
} else if (inport->ramp_pos > 0) {
|
} else if (inio == NULL) {
|
||||||
/* removed port, ramp down */
|
/* removed port, ramp down */
|
||||||
struct ramp_info *ri = &ramps[n_ramps++];
|
struct ramp_info *ri = &ramps[n_ramps++];
|
||||||
ri->port = inport;
|
ri->port = inport;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue