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

Commit 4096406b authored by Andy Hung's avatar Andy Hung
Browse files

FastMixer: Enable Balance by setting channel mask

Ensure Balance channel mask is set if onStateChange not called,
otherwise it doesn't do anything.

Test: Play low latency track, adjust balance left/right
Bug: 203617292
Change-Id: I7da74b2e7c45167b38115c8591aea7164d6d790a
parent 2bcfe35e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -89,6 +89,7 @@ FastMixer::FastMixer(audio_io_handle_t parentIoHandle)
    // TODO: Add channel mask to NBAIO_Format.
    // We assume that the channel mask must be a valid positional channel mask.
    mSinkChannelMask = getChannelMaskFromCount(mSinkChannelCount);
    mBalance.setChannelMask(mSinkChannelMask);

    unsigned i;
    for (i = 0; i < FastMixerState::sMaxFastTracks; ++i) {