mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
audioconvert: send the command to the children
Send the command on the converter to all children as well. Reset the resampler when we are paused so that we don't end up with old data. Fixes #288
This commit is contained in:
parent
310ed89aad
commit
e59c4675a7
7 changed files with 26 additions and 3 deletions
|
|
@ -305,6 +305,8 @@ static void impl_native_process(struct resample *r,
|
|||
static void impl_native_reset (struct resample *r)
|
||||
{
|
||||
struct native_data *d = r->data;
|
||||
if (d == NULL)
|
||||
return;
|
||||
memset(d->hist_mem, 0, r->channels * sizeof(float) * d->n_taps * 2);
|
||||
d->hist = (d->n_taps / 2) - 1;
|
||||
d->phase = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue