Lines Matching refs:channels

26   size_t channels;  member
65 float diff, least_diff = difference(new_win + t->channels * i, f, t->channels * t->overlap); in tempo_best_overlap_position()
73 diff = difference(new_win + t->channels * i, f, t->channels * t->overlap); in tempo_best_overlap_position()
80 diff = difference(new_win + t->channels * i, f, t->channels * t->overlap); in tempo_best_overlap_position()
96 for (j = 0; j < t->channels; ++j, ++k) in tempo_overlap()
109 …fifo_write(&t->output_fifo, t->overlap, (float *) fifo_read_ptr(&t->input_fifo) + t->channels * of… in tempo_process()
113 (float *) fifo_read_ptr(&t->input_fifo) + t->channels * offset, in tempo_process()
119 t->channels * (offset + t->overlap)); in tempo_process()
125 t->channels * (offset + t->segment - t->overlap), in tempo_process()
126 t->channels * t->overlap * sizeof(*(t->overlap_buf))); in tempo_process()
153 float * buff = lsx_calloc(128 * t->channels, sizeof(*buff)); in tempo_flush()
179 t->overlap_buf = lsx_malloc(t->overlap * t->channels * sizeof(*t->overlap_buf)); in tempo_setup()
182 …memset(fifo_reserve(&t->input_fifo, t->search / 2), 0, (t->search / 2) * t->channels * sizeof(floa… in tempo_setup()
193 static tempo_t * tempo_create(size_t channels) in tempo_create() argument
196 t->channels = channels; in tempo_create()
197 fifo_create(&t->input_fifo, t->channels * sizeof(float)); in tempo_create()
198 fifo_create(&t->output_fifo, t->channels * sizeof(float)); in tempo_create()
258 p->tempo = tempo_create((size_t)effp->in_signal.channels); in start()
264 uint64_t in_length = effp->in_signal.length / effp->in_signal.channels; in start()
266 effp->out_signal.length = out_length * effp->in_signal.channels; in start()
276 size_t i, odone = *osamp /= effp->in_signal.channels; in flow()
280 for (i = 0; i < odone * effp->in_signal.channels; ++i) in flow()
284 float * t = tempo_input(p->tempo, NULL, *isamp / effp->in_signal.channels); in flow()
291 *osamp = odone * effp->in_signal.channels; in flow()