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:
Wim Taymans 2020-09-14 16:39:42 +02:00
parent 310ed89aad
commit e59c4675a7
7 changed files with 26 additions and 3 deletions

View file

@ -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;