Commit 8a660936 authored by Yuchen Liu's avatar Yuchen Liu Committed by Commit Bot

[Chromecast] AvSettings API to check audio spatial rendering support

Bug: internal b/139027108
Test: Build
Change-Id: If42783475bb8428116030dc1ad69e7825d59b41d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2023284
Auto-Submit: Yuchen Liu <yucliu@chromium.org>
Commit-Queue: Sergey Volk <servolk@chromium.org>
Reviewed-by: default avatarSergey Volk <servolk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#735720}
parent 8d4a6c12
...@@ -92,8 +92,9 @@ class AvSettings { ...@@ -92,8 +92,9 @@ class AvSettings {
// This event shall be fired whenever the audio codecs supported by the // This event shall be fired whenever the audio codecs supported by the
// device (or HDMI sinks connected to the device) are changed. // device (or HDMI sinks connected to the device) are changed.
// On this event, GetAudioCodecsSupported() and GetMaxAudioChannels() will // On this event, GetAudioCodecsSupported(), GetMaxAudioChannels(), and
// be called on the thread where Initialize() was called. // GetSpatialRenderingAudioCodecs() be called on the thread where
// Initialize() was called.
AUDIO_CODECS_SUPPORTED_CHANGED = 2, AUDIO_CODECS_SUPPORTED_CHANGED = 2,
// This event shall be fired whenever the screen information of the device // This event shall be fired whenever the screen information of the device
...@@ -273,6 +274,11 @@ class AvSettings { ...@@ -273,6 +274,11 @@ class AvSettings {
// The result is an integer of OR'ed AudioCodec values. // The result is an integer of OR'ed AudioCodec values.
virtual int GetAudioCodecsSupported() = 0; virtual int GetAudioCodecsSupported() = 0;
// Returns a bitmap of audio codecs that the device (or HDMI sinks) can
// render spatially.
static CHROMECAST_EXPORT int GetSpatialRenderingAudioCodecs()
__attribute__((weak));
// Gets maximum number of channels for given audio codec, |codec|. // Gets maximum number of channels for given audio codec, |codec|.
virtual int GetMaxAudioChannels(AudioCodec codec) = 0; virtual int GetMaxAudioChannels(AudioCodec codec) = 0;
......
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