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 <string> | 8 #include <string> |
9 | 9 |
10 #include "media/audio/audio_manager_base.h" | 10 #include "media/audio/audio_manager_base.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // Helper methods for performing expensive initialization tasks on the audio | 82 // Helper methods for performing expensive initialization tasks on the audio |
83 // thread instead of on the UI thread which AudioManager is constructed on. | 83 // thread instead of on the UI thread which AudioManager is constructed on. |
84 void InitializeOnAudioThread(); | 84 void InitializeOnAudioThread(); |
85 void ShutdownOnAudioThread(); | 85 void ShutdownOnAudioThread(); |
86 | 86 |
87 void GetAudioDeviceNamesImpl(bool input, AudioDeviceNames* device_names); | 87 void GetAudioDeviceNamesImpl(bool input, AudioDeviceNames* device_names); |
88 | 88 |
89 // Listen for output device changes. | 89 // Listen for output device changes. |
90 scoped_ptr<AudioDeviceListenerWin> output_device_listener_; | 90 scoped_ptr<AudioDeviceListenerWin> output_device_listener_; |
91 | 91 |
| 92 // Cached value for whether or not we should use the WASAPI based libraries |
| 93 // or not. |
| 94 const bool core_audio_supported_; |
| 95 |
92 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); | 96 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); |
93 }; | 97 }; |
94 | 98 |
95 } // namespace media | 99 } // namespace media |
96 | 100 |
97 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ | 101 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ |
OLD | NEW |