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_AUDIO_MANAGER_BASE_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ |
6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ | 6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/threading/thread.h" | 11 #include "base/threading/thread.h" |
12 #include "media/audio/audio_manager.h" | 12 #include "media/audio/audio_manager.h" |
13 | 13 |
14 class AudioOutputDispatcher; | 14 class AudioOutputDispatcher; |
15 | 15 |
16 // AudioManagerBase provides AudioManager functions common for all platforms. | 16 // AudioManagerBase provides AudioManager functions common for all platforms. |
17 class MEDIA_EXPORT AudioManagerBase : public AudioManager { | 17 class MEDIA_EXPORT AudioManagerBase : public AudioManager { |
18 public: | 18 public: |
19 // Name of the generic "default" device. | 19 // Name of the generic "default" device. |
20 static const char kDefaultDeviceName[]; | 20 static const char kDefaultDeviceName[]; |
| 21 // Unique Id of the generic "default" device. |
| 22 static const char kDefaultDeviceId[]; |
21 | 23 |
22 AudioManagerBase(); | 24 AudioManagerBase(); |
23 | 25 |
24 virtual void Init() OVERRIDE; | 26 virtual void Init() OVERRIDE; |
25 virtual void Cleanup() OVERRIDE; | 27 virtual void Cleanup() OVERRIDE; |
26 | 28 |
27 virtual MessageLoop* GetMessageLoop() OVERRIDE; | 29 virtual MessageLoop* GetMessageLoop() OVERRIDE; |
28 | 30 |
29 virtual string16 GetAudioInputDeviceModel() OVERRIDE; | 31 virtual string16 GetAudioInputDeviceModel() OVERRIDE; |
30 | 32 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 67 |
66 // Lock used to synchronize the access to num_active_input_streams_. | 68 // Lock used to synchronize the access to num_active_input_streams_. |
67 // Do not use for anything else and try to avoid using other locks | 69 // Do not use for anything else and try to avoid using other locks |
68 // in this code whenever possible. | 70 // in this code whenever possible. |
69 base::Lock active_input_streams_lock_; | 71 base::Lock active_input_streams_lock_; |
70 | 72 |
71 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); | 73 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); |
72 }; | 74 }; |
73 | 75 |
74 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ | 76 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ |
OLD | NEW |