Commit 48b0ef0b authored by Yuchen Liu's avatar Yuchen Liu Committed by Chromium LUCI CQ

[Chromecast] Disable AAudio for better AV sync

Bug: 177786478
Test: QA test shows the av sync is improved after disabling it.
Change-Id: Ic9257ece4169b54b8b9126717657fb2abe80dcb5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2643402
Commit-Queue: Yuchen Liu <yucliu@chromium.org>
Commit-Queue: Sean Topping <seantopping@chromium.org>
Auto-Submit: Yuchen Liu <yucliu@chromium.org>
Reviewed-by: default avatarSean Topping <seantopping@chromium.org>
Cr-Commit-Position: refs/heads/master@{#845757}
parent 4ef381a6
...@@ -106,6 +106,7 @@ ...@@ -106,6 +106,7 @@
#include "components/cdm/browser/cdm_message_filter_android.h" #include "components/cdm/browser/cdm_message_filter_android.h"
#include "components/crash/core/app/crashpad.h" #include "components/crash/core/app/crashpad.h"
#include "media/audio/android/audio_manager_android.h" #include "media/audio/android/audio_manager_android.h"
#include "media/audio/audio_features.h"
#else #else
#include "chromecast/browser/memory_pressure_controller_impl.h" #include "chromecast/browser/memory_pressure_controller_impl.h"
#endif // defined(OS_ANDROID) #endif // defined(OS_ANDROID)
...@@ -178,8 +179,10 @@ CastContentBrowserClient::CastContentBrowserClient( ...@@ -178,8 +179,10 @@ CastContentBrowserClient::CastContentBrowserClient(
// TODO(juke): Reenable this after solving casting issue on LAN. // TODO(juke): Reenable this after solving casting issue on LAN.
blink::features::kMixedContentAutoupgrade, blink::features::kMixedContentAutoupgrade,
#if defined(OS_ANDROID) #if defined(OS_ANDROID)
::media::kAudioFocusLossSuspendMediaSession, ::media::kAudioFocusLossSuspendMediaSession,
::media::kRequestSystemAudioFocus, ::media::kRequestSystemAudioFocus,
// Disable AAudio improve AV sync performance.
::features::kUseAAudioDriver,
#endif #endif
}); });
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment