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