Lines Matching refs:sample_t

38   #define sample_t   float
42 #define sample_t double macro
55 static sample_t * prepare_coefs(raw_coef_t const * coefs, int num_coefs, in prepare_coefs()
59 sample_t * result = malloc(length * (interp_order + 1) * sizeof(*result)); in prepare_coefs()
86 sample_t * poly_fir_coefs;
123 #define stage_read_p(s) ((sample_t *)fifo_read_ptr(&(s)->fifo) + (s)->pre)
128 sample_t const * input = stage_read_p(p); in cubic_stage_fn()
129 sample_t * output = fifo_reserve(output_fifo, max_num_out); in cubic_stage_fn()
132 sample_t const * s = input + p->at.parts.integer; in cubic_stage_fn()
133 sample_t x = p->at.parts.fraction * (1 / MULT32); in cubic_stage_fn()
134 sample_t b = .5*(s[1]+s[-1])-*s, a = (1/6.)*(s[2]-s[1]+s[-1]-*s-4*b); in cubic_stage_fn()
135 sample_t c = s[1]-*s-a-b; in cubic_stage_fn()
146 sample_t * output, tmp; in dft_stage_fn()
154 sample_t const * input = fifo_read_ptr(&p->fifo); in dft_stage_fn()
312 ceil(max_coefs_size * 1000. / (U100_l * sizeof(sample_t))); in rate_init()
414 coefs_size = num_coefs4 * phases * (order + 1) * sizeof(sample_t); in rate_init()
452 fifo_create(&s->fifo, (int)sizeof(sample_t)); in rate_init()
453 memset(fifo_reserve(&s->fifo, s->preload), 0, sizeof(sample_t)*s->preload); in rate_init()
457 fifo_create(&s->fifo, (int)sizeof(sample_t)); in rate_init()
469 static sample_t * rate_input(rate_t * p, sample_t const * samples, size_t n) in rate_input()
475 static sample_t const * rate_output(rate_t * p, sample_t * samples, size_t * n) in rate_output()
488 sample_t * buff = calloc(1024, sizeof(*buff)); in rate_flush()
659 sample_t const * s = rate_output(&p->rate, NULL, &odone); in flow()
663 sample_t * t = rate_input(&p->rate, NULL, *isamp); in flow()