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_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/atomic_ref_count.h" | 10 #include "base/atomic_ref_count.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
14 #include "media/audio/audio_manager.h" | 14 #include "media/audio/audio_manager.h" |
15 | 15 |
16 class AudioOutputDispatcher; | |
17 | |
18 namespace base { | 16 namespace base { |
19 class Thread; | 17 class Thread; |
20 } | 18 } |
21 | 19 |
| 20 namespace media { |
| 21 |
| 22 class AudioOutputDispatcher; |
| 23 |
22 // AudioManagerBase provides AudioManager functions common for all platforms. | 24 // AudioManagerBase provides AudioManager functions common for all platforms. |
23 class MEDIA_EXPORT AudioManagerBase : public AudioManager { | 25 class MEDIA_EXPORT AudioManagerBase : public AudioManager { |
24 public: | 26 public: |
25 // Name of the generic "default" device. | 27 // Name of the generic "default" device. |
26 static const char kDefaultDeviceName[]; | 28 static const char kDefaultDeviceName[]; |
27 // Unique Id of the generic "default" device. | 29 // Unique Id of the generic "default" device. |
28 static const char kDefaultDeviceId[]; | 30 static const char kDefaultDeviceId[]; |
29 | 31 |
30 virtual ~AudioManagerBase(); | 32 virtual ~AudioManagerBase(); |
31 | 33 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 119 |
118 // Number of currently open output streams. | 120 // Number of currently open output streams. |
119 int num_output_streams_; | 121 int num_output_streams_; |
120 | 122 |
121 // Number of currently open input streams. | 123 // Number of currently open input streams. |
122 int num_input_streams_; | 124 int num_input_streams_; |
123 | 125 |
124 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); | 126 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); |
125 }; | 127 }; |
126 | 128 |
| 129 } // namespace media |
| 130 |
127 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ | 131 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ |
OLD | NEW |