Home
last modified time | relevance | path

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

/device/generic/car/emulator/audio/driver/
Daudio_hw.c324 int16_t *int16_buffer = (int16_t *)buffer; in out_apply_gain() local
328 int16_buffer[i] = 0; in out_apply_gain()
330 int16_buffer[i] = 0; in out_apply_gain()
332 float multiplied = int16_buffer[i] * out->amplitude_ratio; in out_apply_gain()
333 if (multiplied > INT16_MAX) int16_buffer[i] = INT16_MAX; in out_apply_gain()
334 else if (multiplied < INT16_MIN) int16_buffer[i] = INT16_MIN; in out_apply_gain()
335 else int16_buffer[i] = (int16_t)multiplied; in out_apply_gain()