libeffects: Corrected the Copy_Float in LVM_Process.c to handle MC

Copy_Float function present after the LVDBE_Process function in
LVM_Process.c was not taking into consideration NumChannels.
Corrected this.

Test: discovered by code inspection, CTS, Solotester
Bug: 130781096
Change-Id: Ib0bccd36f3986463b602fa20fc09ab0741f7e39e
gugelfrei
Saketh Sathuvalli 5 years ago committed by Andy Hung
parent 8263e3519b
commit 97aaad8ef2

@ -230,9 +230,15 @@ LVM_ReturnStatus_en LVM_Process(LVM_Handle_t hInstance,
*/
if (pToProcess != pProcessed)
{
#ifdef SUPPORT_MC
Copy_Float(pToProcess, /* Source */
pProcessed, /* Destination */
(LVM_INT16)(NrChannels * NrFrames)); /* Copy all samples */
#else
Copy_Float(pToProcess, /* Source */
pProcessed, /* Destination */
(LVM_INT16)(2 * SampleCount)); /* Left and right */
#endif
}
/*

Loading…
Cancel
Save