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

Commit 62aef7d3 authored by Andy Hung's avatar Andy Hung
Browse files

EffectModule: initialize all member variables in constructor

Test: Solo Tester and CTS effect tests
Bug: 70674145
Change-Id: I9a9e137b8c612f0ea8862da3973d142636fad34d
parent ab30516b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -72,9 +72,10 @@ AudioFlinger::EffectModule::EffectModule(ThreadBase *thread,
      // prior to configure().
      mConfig{{}, {}},
      mStatus(NO_INIT), mState(IDLE),
      // mMaxDisableWaitCnt is set by configure() and not used before then
      // mDisableWaitCnt is set by process() and updateState() and not used before then
      mMaxDisableWaitCnt(1), // set by configure(), should be >= 1
      mDisableWaitCnt(0),    // set by process() and updateState()
      mSuspended(false),
      mOffloaded(false),
      mAudioFlinger(thread->mAudioFlinger)
#ifdef FLOAT_EFFECT_CHAIN
      , mSupportsFloat(false)