[an error occurred while processing this directive]
|
float filtr(float in_sample)
{
const int FirLength = 13;
const float coefs[FirLength]={...};
static float del_line[FirLength*2];
static float *ptr=&del_line[FirLength];
static float *ptr_end = del_line + FirLength*2;
float *p, *pc;
float fir_out = 0;
*ptr = in_sample; ptr++; }
p = ptr;
pc = coefs;
// fir loop
for (int i=0; i
fir_out+=(*p)*(*pc++);
p--;
}
if(ptr==ptr_end)
{
ptr=&del_line[FirLength];
memcpy( del_line, ptr, FirLength*sizeof(del_line[0]) );
}
Ответы
Перейти к списку ответов
|||
Конференция
|||
Архив
|||
Главная страница
|||
Содержание