| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 class PCMWaveOutAudioOutputStream; | |
| 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 AudioOutputStream* MakeAudioOutputStream( | 25 virtual AudioOutputStream* MakeAudioOutputStream( |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 enumeration_type_ = type; | 60 enumeration_type_ = type; |
| 63 } | 61 } |
| 64 | 62 |
| 65 // Number of currently open output streams. | 63 // Number of currently open output streams. |
| 66 int num_output_streams_; | 64 int num_output_streams_; |
| 67 | 65 |
| 68 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); | 66 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); |
| 69 }; | 67 }; |
| 70 | 68 |
| 71 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ | 69 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ |
| OLD | NEW |