Lines Matching refs:pInstance
62 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance;
71 pBuffer = pInstance->pBufferManagement;
79 if (pInstance->SamplesToProcess == 0)
84 pInstance->SamplesToProcess = (LVM_INT16)(*pNumSamples + pBuffer->InDelaySamples);
85 pInstance->pInputSamples = (LVM_INT16 *)pInData;
88 pStart = pInstance->pInputSamples; /* Pointer to the input samples */
95 if (pInstance->SamplesToProcess > pInstance->InternalBlockSize)
100 SampleCount = pInstance->InternalBlockSize;
101 NumSamples = pInstance->InternalBlockSize;
110 NumSamples = pInstance->SamplesToProcess;
164 pInstance->SamplesToProcess = (LVM_INT16)(pInstance->SamplesToProcess - SampleCount); /* Update the count of samples */
165 pInstance->pInputSamples = pStart; /* Update input sample pointer */
174 NumSamples = pInstance->SamplesToProcess;
189 pInstance->SamplesToProcess = 0; /* All Samples used */
223 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance;
229 if (pInstance->SamplesToProcess == 0)
231 pInstance->SamplesToProcess = (LVM_INT16)*pNumSamples; /* Get the number of samples on first call */
232 pInstance->pInputSamples = *pToProcess; /* Get the I/O pointers */
233 pInstance->pOutputSamples = *pProcessed;
239 if (pInstance->SamplesToProcess > pInstance->InternalBlockSize)
241 *pNumSamples = (LVM_UINT16)pInstance->InternalBlockSize;
245 *pNumSamples = (LVM_UINT16)pInstance->SamplesToProcess;
252 *pToProcess = pInstance->pInputSamples;
253 *pProcessed = pInstance->pOutputSamples;
288 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance;
289 LVM_Buffer_t *pBuffer = pInstance->pBufferManagement;
298 if (pInstance->SamplesToProcess == 0)
304 pInstance->pInputSamples = (LVM_INT16 *)pInData;
305 pInstance->SamplesToProcess = (LVM_INT16)*pNumSamples;
340 if (NumSamples >= pInstance->InternalBlockSize)
342 NumSamples = pInstance->InternalBlockSize;
354 Copy_16(pInstance->pInputSamples, /* Source */
357 pInstance->pInputSamples += 2 * SampleCount; /* Update the input pointer */
358 pInstance->pOutputSamples = pDest + (2 * SampleCount); /* Update the output pointer */
359 pInstance->SamplesToProcess = (LVM_INT16)(pInstance->SamplesToProcess - SampleCount); /* Samples left in the input buffer */
371 *pToProcess = pInstance->pOutputSamples; /* Set the address to start processing */
372 *pProcessed = pInstance->pOutputSamples; /* Process in the output buffer, now inplace */
374 if (NumSamples >= pInstance->InternalBlockSize)
376 NumSamples = pInstance->InternalBlockSize;
386 Copy_16(pInstance->pInputSamples, /* Source */
387 pInstance->pOutputSamples, /* Destination */
389 pInstance->pInputSamples += 2 * SampleCount; /* Update the input pointer */
390 pInstance->pOutputSamples += 2 * SampleCount; /* Update the output pointer */
391 pInstance->SamplesToProcess = (LVM_INT16)(pInstance->SamplesToProcess - SampleCount); /* Samples left in the input buffer */
402 NumSamples = pInstance->SamplesToProcess; /* Number left to be processed */
411 Copy_16(pInstance->pInputSamples, /* Source */
414 pInstance->pInputSamples += 2 * SampleCount; /* Update the input pointer */
415 pInstance->SamplesToProcess = (LVM_INT16)(pInstance->SamplesToProcess - SampleCount); /* Samples left in the input buffer */
482 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance;
488 if (pInstance->InstParams.BufferMode == LVM_MANAGED_BUFFERS)
531 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance;
532 LVM_Buffer_t *pBuffer = pInstance->pBufferManagement;
553 pInstance->pOutputSamples = pOutData; /* Initialise the destination */
555 pDest = pInstance->pOutputSamples; /* Set the output address */
671 pInstance->pOutputSamples = pDest; /* Output sample pointer */
673 *pNumSamples = (LVM_UINT16)pInstance->SamplesToProcess; /* This will terminate the loop when all samples processed */
700 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance;
707 pInstance->pInputSamples += (LVM_INT16)(*pNumSamples * NumChannels); /* Update the I/O pointers */
708 pInstance->pOutputSamples += (LVM_INT16)(*pNumSamples * 2);
709 pInstance->SamplesToProcess = (LVM_INT16)(pInstance->SamplesToProcess - *pNumSamples); /* Update the sample count */
714 if (pInstance->SamplesToProcess > pInstance->InternalBlockSize)
716 *pNumSamples = (LVM_UINT16)pInstance->InternalBlockSize;
720 *pNumSamples = (LVM_UINT16)pInstance->SamplesToProcess;
748 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance;
749 LVM_Buffer_t *pBuffer = pInstance->pBufferManagement;
761 if (pInstance->SamplesToProcess != 0)
763 Copy_16(pInstance->pInputSamples, /* Source */
765 (LVM_INT16)(2*pInstance->SamplesToProcess)); /* Number of input samples */
766 pBuffer->InDelaySamples = pInstance->SamplesToProcess;
767 pInstance->SamplesToProcess = 0;
781 pInstance->pOutputSamples, /* Destination */
852 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance;
858 if (pInstance->InstParams.BufferMode == LVM_MANAGED_BUFFERS)