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

Commit c6de9ed1 authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "libeffects: Correct LVM_BufferUnmanagedOut function for mono input" into qt-dev

parents 074ed55c ace192e7
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