Lines Matching refs:inBuffer
270 effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in LE_process() argument
278 if (inBuffer == NULL || inBuffer->raw == NULL || in LE_process()
280 inBuffer->frameCount != outBuffer->frameCount || in LE_process()
281 inBuffer->frameCount == 0) { in LE_process()
289 for (inIdx = 0 ; inIdx < inBuffer->frameCount ; inIdx++) { in LE_process()
291 leftSample = inputAmp * (float)inBuffer->s16[2*inIdx]; in LE_process()
292 rightSample = inputAmp * (float)inBuffer->s16[2*inIdx +1]; in LE_process()
294 inBuffer->s16[2*inIdx] = (int16_t) leftSample; in LE_process()
295 inBuffer->s16[2*inIdx +1] = (int16_t) rightSample; in LE_process()
298 if (inBuffer->raw != outBuffer->raw) { in LE_process()
301 outBuffer->s16[i] = clamp16(outBuffer->s16[i] + inBuffer->s16[i]); in LE_process()
304 memcpy(outBuffer->raw, inBuffer->raw, outBuffer->frameCount * 2 * sizeof(int16_t)); in LE_process()