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

Unified Diff: media/audio/win/audio_manager_win.h

Issue 9566002: On windows, create PCMWaveInAudioInputStream instance with correct device ID. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use the solution suggested by Henrik. Created 8 years, 10 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 | « no previous file | media/audio/win/audio_manager_win.cc » ('j') | media/audio/win/audio_manager_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/audio_manager_win.h
diff --git a/media/audio/win/audio_manager_win.h b/media/audio/win/audio_manager_win.h
index 594e5351092b4c2b82c0e1c174da5b6497a6f5eb..ba944f024d52f4c91920648e2929a298a3f207e8 100644
--- a/media/audio/win/audio_manager_win.h
+++ b/media/audio/win/audio_manager_win.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -62,6 +62,15 @@ class MEDIA_EXPORT AudioManagerWin : public AudioManagerBase {
enumeration_type_ = type;
}
+ // Returns a PCMWaveInAudioInputStream instance or NULL on failure.
+ // This method converts MMDevice-style device ID to WaveIn-style device ID if
+ // necessary.
+ // (Please see device_enumeration_win.h for more info about the two kinds of
+ // device IDs.)
+ AudioInputStream* CreatePCMWaveInAudioInputStream(
+ const AudioParameters& params,
+ const std::string& device_id);
+
// Number of currently open output streams.
int num_output_streams_;
« no previous file with comments | « no previous file | media/audio/win/audio_manager_win.cc » ('j') | media/audio/win/audio_manager_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698