1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-28 13:04:17 -04:00

WDSP corrections

This commit is contained in:
f4exb
2024-06-24 22:23:10 +02:00
parent b2303b028c
commit 8d9dc3b5ed
40 changed files with 133 additions and 126 deletions
+2 -2
View File
@@ -116,7 +116,7 @@ void RESAMPLE::destroy_resample (RESAMPLE *a)
void RESAMPLE::flush_resample (RESAMPLE *a)
{
memset (a->ring, 0, a->ringsize * sizeof (dcomplex));
memset (a->ring, 0, a->ringsize * sizeof (wcomplex));
a->idx_in = a->ringsize - 1;
a->phnum = 0;
}
@@ -156,7 +156,7 @@ int RESAMPLE::xresample (RESAMPLE *a)
}
}
else if (a->in != a->out)
memcpy (a->out, a->in, a->size * sizeof (dcomplex));
memcpy (a->out, a->in, a->size * sizeof (wcomplex));
return outsamps;
}