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

Commit 568085d0 authored by Ricardo Garcia's avatar Ricardo Garcia Committed by Gerrit Code Review
Browse files

Merge "Override Auxiliary audio effect output as stereo"

parents bad65c51 12ccef79
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -339,6 +339,8 @@ status_t AudioFlinger::EffectModule::configure()

    if ((mDescriptor.flags & EFFECT_FLAG_TYPE_MASK) == EFFECT_FLAG_TYPE_AUXILIARY) {
        mConfig.inputCfg.channels = AUDIO_CHANNEL_OUT_MONO;
        mConfig.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO;
        ALOGV("Overriding auxiliary effect input as MONO and output as STEREO");
    } else {
        mConfig.inputCfg.channels = channelMask;
        // TODO: Update this logic when multichannel effects are implemented.