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

Unified Diff: media/audio/audio_output_resampler.cc

Issue 1304973005: Refactor AudioParameters member setting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cross-platform fixes. Created 5 years, 3 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/audio/audio_output_device_unittest.cc ('k') | media/audio/audio_parameters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_resampler.cc
diff --git a/media/audio/audio_output_resampler.cc b/media/audio/audio_output_resampler.cc
index 6fb970b9f2b078bf214d0cc252c734781b50dcb9..d85768b7b6a62b7e1716be298f9bf29cff13cda1 100644
--- a/media/audio/audio_output_resampler.cc
+++ b/media/audio/audio_output_resampler.cc
@@ -241,10 +241,9 @@ bool AudioOutputResampler::OpenStream() {
<< "back to fake audio output.";
// Finally fall back to a fake audio output device.
- output_params_.Reset(
- AudioParameters::AUDIO_FAKE, params_.channel_layout(),
- params_.channels(), params_.sample_rate(),
- params_.bits_per_sample(), params_.frames_per_buffer());
+ output_params_ = params_;
+ output_params_.set_format(AudioParameters::AUDIO_FAKE);
+
Initialize();
if (dispatcher_->OpenStream()) {
streams_opened_ = true;
« no previous file with comments | « media/audio/audio_output_device_unittest.cc ('k') | media/audio/audio_parameters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698