Searched refs:pipeline_out (Results 1 – 1 of 1) sorted by relevance
59 struct ext_mixer_pipeline *pipeline_out = (struct ext_mixer_pipeline *)context; in mixer_thread_mix() local61 pipeline_out->position = MAX(pipeline_out->position, pipeline_in->position); in mixer_thread_mix()62 for (int i = 0; i < pipeline_out->position; i++) { in mixer_thread_mix()63 float mixed = pipeline_out->buffer[i] + pipeline_in->buffer[i]; in mixer_thread_mix()64 if (mixed > INT16_MAX) pipeline_out->buffer[i] = INT16_MAX; in mixer_thread_mix()65 else if (mixed < INT16_MIN) pipeline_out->buffer[i] = INT16_MIN; in mixer_thread_mix()66 else pipeline_out->buffer[i] = (int16_t)mixed; in mixer_thread_mix()