Lines Matching refs:inBuffer
283 effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) in LE_process() argument
291 if (inBuffer == NULL || inBuffer->raw == NULL || in LE_process()
293 inBuffer->frameCount != outBuffer->frameCount || in LE_process()
294 inBuffer->frameCount == 0) { in LE_process()
308 for (inIdx = 0 ; inIdx < inBuffer->frameCount ; inIdx++) { in LE_process()
311 leftSample = inputAmp * inBuffer->f32[2*inIdx]; in LE_process()
312 rightSample = inputAmp * inBuffer->f32[2*inIdx +1]; in LE_process()
314 inBuffer->f32[2*inIdx] = leftSample * inverseScale; in LE_process()
315 inBuffer->f32[2*inIdx +1] = rightSample * inverseScale; in LE_process()
317 leftSample = inputAmp * (float)inBuffer->s16[2*inIdx]; in LE_process()
318 rightSample = inputAmp * (float)inBuffer->s16[2*inIdx +1]; in LE_process()
320 inBuffer->s16[2*inIdx] = (int16_t) leftSample; in LE_process()
321 inBuffer->s16[2*inIdx +1] = (int16_t) rightSample; in LE_process()
325 if (inBuffer->raw != outBuffer->raw) { in LE_process()
329 outBuffer->f32[i] += inBuffer->f32[i]; in LE_process()
332 memcpy(outBuffer->raw, inBuffer->raw, outBuffer->frameCount * 2 * sizeof(float)); in LE_process()
337 outBuffer->s16[i] = clamp16(outBuffer->s16[i] + inBuffer->s16[i]); in LE_process()
340 memcpy(outBuffer->raw, inBuffer->raw, outBuffer->frameCount * 2 * sizeof(int16_t)); in LE_process()