Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ace192e7 authored by Saketh Sathuvalli's avatar Saketh Sathuvalli Committed by Andy Hung
Browse files

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
parent 7ec75ad4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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