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

Side by Side 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: Add test. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/audio/audio_input_device_unittest.cc ('k') | media/audio/win/audio_manager_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ 5 #ifndef MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_
6 #define MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ 6 #define MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // Allow unit test to modify the utilized enumeration API. 53 // Allow unit test to modify the utilized enumeration API.
54 friend class AudioInputDeviceTest; 54 friend class AudioInputDeviceTest;
55 55
56 EnumerationType enumeration_type_; 56 EnumerationType enumeration_type_;
57 EnumerationType enumeration_type() { return enumeration_type_; } 57 EnumerationType enumeration_type() { return enumeration_type_; }
58 void SetEnumerationType(EnumerationType type) { 58 void SetEnumerationType(EnumerationType type) {
59 enumeration_type_ = type; 59 enumeration_type_ = type;
60 } 60 }
61 61
62 // Returns a PCMWaveInAudioInputStream instance or NULL on failure.
63 // This method converts MMDevice-style device ID to WaveIn-style device ID if
64 // necessary.
65 // (Please see device_enumeration_win.h for more info about the two kinds of
66 // device IDs.)
67 AudioInputStream* CreatePCMWaveInAudioInputStream(
68 const AudioParameters& params,
69 const std::string& device_id);
70
62 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); 71 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin);
63 }; 72 };
64 73
65 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ 74 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_
OLDNEW
« no previous file with comments | « media/audio/audio_input_device_unittest.cc ('k') | media/audio/win/audio_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698