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

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

Merge "audioflinger: enable effects after registration if needed" into klp-dev

parents fd477974 d72b7c01
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2340,6 +2340,7 @@ status_t AudioFlinger::moveEffectChain_l(int sessionId,
                                        strategy,
                                        sessionId,
                                        effect->id());
            AudioSystem::setEffectEnabled(effect->id(), effect->isEnabled());
        }
        effect = chain->getEffectFromId_l(0);
    }
@@ -2354,6 +2355,7 @@ status_t AudioFlinger::moveEffectChain_l(int sessionId,
                                            strategy,
                                            sessionId,
                                            removed[i]->id());
                AudioSystem::setEffectEnabled(effect->id(), effect->isEnabled());
            }
        }
    }
+1 −0
Original line number Diff line number Diff line
@@ -852,6 +852,7 @@ status_t AudioFlinger::PlaybackThread::Track::attachAuxEffect(int EffectId)
                                        dstChain->strategy(),
                                        AUDIO_SESSION_OUTPUT_MIX,
                                        effect->id());
            AudioSystem::setEffectEnabled(effect->id(), effect->isEnabled());
        }
        status = playbackThread->attachAuxEffect(this, EffectId);
    }