libeffects: Correct LVM_BufferUnmanagedOut function for mono input

Use stereo to match internal computations in LVM_Process.

Test: dedicated POC see bug below.
Bug: 131065273
Change-Id: Icdc15d0da2772979f82a4ad08d360c81b965f705
gugelfrei
Saketh Sathuvalli 5 years ago committed by Andy Hung
parent 7ec75ad4ad
commit ace192e7f3

@ -1128,6 +1128,11 @@ void LVM_BufferUnmanagedOut(LVM_Handle_t hInstance,
LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance;
#ifdef SUPPORT_MC
LVM_INT16 NumChannels = pInstance->NrChannels;
if (NumChannels == 1)
{
/* Mono input is processed as stereo by LVM module */
NumChannels = 2;
}
#undef NrFrames
#define NrFrames (*pNumSamples) // alias for clarity
#else

Loading…
Cancel
Save