OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |