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

Unified Diff: media/filters/audio_renderer_impl.cc

Issue 517003002: Remove RenderThreadImpl dependencies from WebMediaPlayerImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 4 months 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
« no previous file with comments | « media/filters/audio_renderer_impl.h ('k') | media/filters/audio_renderer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_renderer_impl.cc
diff --git a/media/filters/audio_renderer_impl.cc b/media/filters/audio_renderer_impl.cc
index f5f35a84a999f551106448818efd85a0ba925fbe..220b528e03403e4d64445d77fa421636ee06765f 100644
--- a/media/filters/audio_renderer_impl.cc
+++ b/media/filters/audio_renderer_impl.cc
@@ -45,7 +45,7 @@ AudioRendererImpl::AudioRendererImpl(
media::AudioRendererSink* sink,
ScopedVector<AudioDecoder> decoders,
const SetDecryptorReadyCB& set_decryptor_ready_cb,
- AudioHardwareConfig* hardware_config)
+ const AudioHardwareConfig& hardware_config)
: task_runner_(task_runner),
expecting_config_changes_(false),
sink_(sink),
@@ -283,7 +283,7 @@ void AudioRendererImpl::Initialize(DemuxerStream* stream,
buffer_converter_.reset();
} else {
// TODO(rileya): Support hardware config changes
- const AudioParameters& hw_params = hardware_config_->GetOutputConfig();
+ const AudioParameters& hw_params = hardware_config_.GetOutputConfig();
audio_parameters_.Reset(
hw_params.format(),
// Always use the source's channel layout and channel count to avoid
@@ -295,7 +295,7 @@ void AudioRendererImpl::Initialize(DemuxerStream* stream,
stream->audio_decoder_config().channel_layout()),
hw_params.sample_rate(),
hw_params.bits_per_sample(),
- hardware_config_->GetHighLatencyBufferSize());
+ hardware_config_.GetHighLatencyBufferSize());
}
audio_clock_.reset(
« no previous file with comments | « media/filters/audio_renderer_impl.h ('k') | media/filters/audio_renderer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698