Home
last modified time | relevance | path

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

/device/google/trout/hal/audio/6.0/
Daudio_hw.c432 int16_t *int16_buffer = (int16_t *)buffer; in out_apply_gain() local
436 int16_buffer[i] = 0; in out_apply_gain()
438 int16_buffer[i] = 0; in out_apply_gain()
440 float multiplied = int16_buffer[i] * out->amplitude_ratio; in out_apply_gain()
441 if (multiplied > INT16_MAX) int16_buffer[i] = INT16_MAX; in out_apply_gain()
442 else if (multiplied < INT16_MIN) int16_buffer[i] = INT16_MIN; in out_apply_gain()
443 else int16_buffer[i] = (int16_t)multiplied; in out_apply_gain()
/device/generic/car/emulator/audio/driver/
Daudio_hw.c392 int16_t *int16_buffer = (int16_t *)buffer; in out_apply_gain() local
396 int16_buffer[i] = 0; in out_apply_gain()
398 int16_buffer[i] = 0; in out_apply_gain()
400 float multiplied = int16_buffer[i] * out->amplitude_ratio; in out_apply_gain()
401 if (multiplied > INT16_MAX) int16_buffer[i] = INT16_MAX; in out_apply_gain()
402 else if (multiplied < INT16_MIN) int16_buffer[i] = INT16_MIN; in out_apply_gain()
403 else int16_buffer[i] = (int16_t)multiplied; in out_apply_gain()