Home
last modified time | relevance | path

Searched refs:pipeline_out (Results 1 – 1 of 1) sorted by relevance

/device/generic/car/emulator/audio/driver/
Dext_pcm.c59 struct ext_mixer_pipeline *pipeline_out = (struct ext_mixer_pipeline *)context; in mixer_thread_mix() local
61 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()