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

Commit e7191688 authored by Andy Hung's avatar Andy Hung Committed by android-build-merger
Browse files

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

am: c6de9ed1

Change-Id: If266d1678d39c85cd09048232f64fc99f05152f2
parents d1fb9d3f c6de9ed1
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