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