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

Commit f25f8410 authored by Wei Jia's avatar Wei Jia Committed by Android (Google) Code Review
Browse files

Merge "AudioPolicyManager: disable offload mode when streaming." into nyc-dev

parents 9ac86b3c 7b8d4343
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2200,6 +2200,13 @@ bool AudioPolicyManager::isOffloadSupported(const audio_offload_info_t& offloadI
        return false;
    }

    // Check if streaming is off, then only allow offload as of now.
    if (offloadInfo.is_streaming)
    {
        ALOGV("isOffloadSupported: is_streaming == true, returning false");
        return false;
    }

    //TODO: enable audio offloading with video when ready
    const bool allowOffloadWithVideo =
            property_get_bool("audio.offload.video", false /* default_value */);