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

Unified Diff: media/audio/audio_input_controller.cc

Issue 9655018: Make AudioParameters a class instead of a struct (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 8 years, 9 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
Index: media/audio/audio_input_controller.cc
diff --git a/media/audio/audio_input_controller.cc b/media/audio/audio_input_controller.cc
index 14d3bbae0e86f267d74f3dc10c1cbd26d6192eda..a8e08a8b1ea652e4c02bb4d9da936a25b2140a82 100644
--- a/media/audio/audio_input_controller.cc
+++ b/media/audio/audio_input_controller.cc
@@ -43,7 +43,7 @@ scoped_refptr<AudioInputController> AudioInputController::Create(
const AudioParameters& params) {
DCHECK(audio_manager);
- if (!params.IsValid() || (params.channels > kMaxInputChannels))
+ if (!params.IsValid() || (params.channels() > kMaxInputChannels))
return NULL;
if (factory_)
@@ -76,7 +76,7 @@ scoped_refptr<AudioInputController> AudioInputController::CreateLowLatency(
DCHECK(audio_manager);
DCHECK(sync_writer);
- if (!params.IsValid() || (params.channels > kMaxInputChannels))
+ if (!params.IsValid() || (params.channels() > kMaxInputChannels))
return NULL;
// Create the AudioInputController object and ensure that it runs on

Powered by Google App Engine
This is Rietveld 408576698