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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "media/audio/audio_manager_base.h" | 14 #include "media/audio/audio_manager_base.h" |
15 | 15 |
| 16 namespace media { |
| 17 |
16 // Windows implementation of the AudioManager singleton. This class is internal | 18 // Windows implementation of the AudioManager singleton. This class is internal |
17 // to the audio output and only internal users can call methods not exposed by | 19 // to the audio output and only internal users can call methods not exposed by |
18 // the AudioManager class. | 20 // the AudioManager class. |
19 class MEDIA_EXPORT AudioManagerWin : public AudioManagerBase { | 21 class MEDIA_EXPORT AudioManagerWin : public AudioManagerBase { |
20 public: | 22 public: |
21 AudioManagerWin(); | 23 AudioManagerWin(); |
22 // Implementation of AudioManager. | 24 // Implementation of AudioManager. |
23 virtual bool HasAudioOutputDevices() OVERRIDE; | 25 virtual bool HasAudioOutputDevices() OVERRIDE; |
24 virtual bool HasAudioInputDevices() OVERRIDE; | 26 virtual bool HasAudioInputDevices() OVERRIDE; |
25 virtual void MuteAll() OVERRIDE; | 27 virtual void MuteAll() OVERRIDE; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // necessary. | 66 // necessary. |
65 // (Please see device_enumeration_win.h for more info about the two kinds of | 67 // (Please see device_enumeration_win.h for more info about the two kinds of |
66 // device IDs.) | 68 // device IDs.) |
67 AudioInputStream* CreatePCMWaveInAudioInputStream( | 69 AudioInputStream* CreatePCMWaveInAudioInputStream( |
68 const AudioParameters& params, | 70 const AudioParameters& params, |
69 const std::string& device_id); | 71 const std::string& device_id); |
70 | 72 |
71 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); | 73 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); |
72 }; | 74 }; |
73 | 75 |
| 76 } // namespace media |
| 77 |
74 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ | 78 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ |
OLD | NEW |