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_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_H_ |
6 #define MEDIA_AUDIO_AUDIO_MANAGER_H_ | 6 #define MEDIA_AUDIO_AUDIO_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "base/task.h" | |
14 #include "media/audio/audio_device_name.h" | 13 #include "media/audio/audio_device_name.h" |
15 #include "media/audio/audio_parameters.h" | 14 #include "media/audio/audio_parameters.h" |
16 | 15 |
17 class AudioInputStream; | 16 class AudioInputStream; |
18 class AudioOutputStream; | 17 class AudioOutputStream; |
19 class MessageLoop; | 18 class MessageLoop; |
20 | 19 |
21 // Manages all audio resources. In particular it owns the AudioOutputStream | 20 // Manages all audio resources. In particular it owns the AudioOutputStream |
22 // objects. Provides some convenience functions that avoid the need to provide | 21 // objects. Provides some convenience functions that avoid the need to provide |
23 // iterators over the existing streams. | 22 // iterators over the existing streams. |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 125 |
127 protected: | 126 protected: |
128 // Called from Create() to initialize the instance. | 127 // Called from Create() to initialize the instance. |
129 virtual void Init() = 0; | 128 virtual void Init() = 0; |
130 | 129 |
131 friend class base::RefCountedThreadSafe<AudioManager>; | 130 friend class base::RefCountedThreadSafe<AudioManager>; |
132 virtual ~AudioManager(); | 131 virtual ~AudioManager(); |
133 }; | 132 }; |
134 | 133 |
135 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ | 134 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ |
OLD | NEW |