Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(716)

Unified Diff: content/renderer/media/audio_renderer_mixer_manager.cc

Issue 2466463005: Support (E)AC3 passthrough
Patch Set: Improve CastMediaClient::IsSupportedPassthroughAudio() Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/audio_renderer_mixer_manager.cc
diff --git a/content/renderer/media/audio_renderer_mixer_manager.cc b/content/renderer/media/audio_renderer_mixer_manager.cc
index f22bdc3f6d7c94d38cff3ee3f6ac4e05466c47ac..315c867c04bc72b36bd683e12f34ba43e60fca7c 100644
--- a/content/renderer/media/audio_renderer_mixer_manager.cc
+++ b/content/renderer/media/audio_renderer_mixer_manager.cc
@@ -202,7 +202,8 @@ media::AudioRendererMixer* AudioRendererMixerManager::GetMixer(
const media::AudioParameters& mixer_output_params =
GetMixerOutputParams(input_params, device_info.output_params(), latency);
media::AudioRendererMixer* mixer = new media::AudioRendererMixer(
- mixer_output_params, sink, base::Bind(LogMixerUmaHistogram, latency));
+ input_params.IsRawFormat() ? input_params : mixer_output_params, sink,
+ base::Bind(LogMixerUmaHistogram, latency));
AudioRendererMixerReference mixer_reference = {mixer, 1, sink.get()};
mixers_[key] = mixer_reference;
DVLOG(1) << __func__ << " mixer: " << mixer << " latency: " << latency

Powered by Google App Engine
This is Rietveld 408576698