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