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

Commit cba53fbd authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

audio effects: fix bug in sample rate control.

Fix a bug in LVM bundle wrapper preventing audio framework sample rate
from being sent to the effect bundle instance.

Change-Id: I912027f866d3beac91b977bba869ff96a92d2a62
parent 23466a95
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1011,6 +1011,8 @@ int Effect_setConfig(EffectContext *pContext, effect_config_t *pConfig){
        LVM_ERROR_CHECK(LvmStatus, "LVM_GetControlParameters", "Effect_setConfig")
        if(LvmStatus != LVM_SUCCESS) return -EINVAL;

        ActiveParams.SampleRate = SampleRate;

        LvmStatus = LVM_SetControlParameters(pContext->pBundledContext->hInstance, &ActiveParams);

        LVM_ERROR_CHECK(LvmStatus, "LVM_SetControlParameters", "Effect_setConfig")