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

Commit 20d09f3d authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "Add property to control audio offload with video content" into mnc-dev

parents 05421987 08945c44
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2031,8 +2031,9 @@ bool AudioPolicyManager::isOffloadSupported(const audio_offload_info_t& offloadI
    }

    //TODO: enable audio offloading with video when ready
    if (offloadInfo.has_video)
    {
    const bool allowOffloadWithVideo =
            property_get_bool("audio.offload.video", false /* default_value */);
    if (offloadInfo.has_video && !allowOffloadWithVideo) {
        ALOGV("isOffloadSupported: has_video == true, returning false");
        return false;
    }