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_IO_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_IO_H_ |
6 #define MEDIA_AUDIO_AUDIO_IO_H_ | 6 #define MEDIA_AUDIO_AUDIO_IO_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "media/base/audio_bus.h" | 10 #include "media/base/audio_bus.h" |
9 | 11 |
10 // Low-level audio output support. To make sound there are 3 objects involved: | 12 // Low-level audio output support. To make sound there are 3 objects involved: |
11 // - AudioSource : produces audio samples on a pull model. Implements | 13 // - AudioSource : produces audio samples on a pull model. Implements |
12 // the AudioSourceCallback interface. | 14 // the AudioSourceCallback interface. |
13 // - AudioOutputStream : uses the AudioSource to render audio on a given | 15 // - AudioOutputStream : uses the AudioSource to render audio on a given |
14 // channel, format and sample frequency configuration. Data from the | 16 // channel, format and sample frequency configuration. Data from the |
15 // AudioSource is delivered in a 'pull' model. | 17 // AudioSource is delivered in a 'pull' model. |
16 // - AudioManager : factory for the AudioOutputStream objects, manager | 18 // - AudioManager : factory for the AudioOutputStream objects, manager |
17 // of the hardware resources and mixer control. | 19 // of the hardware resources and mixer control. |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 // Returns the Automatic Gain Control (AGC) state. | 168 // Returns the Automatic Gain Control (AGC) state. |
167 virtual bool GetAutomaticGainControl() = 0; | 169 virtual bool GetAutomaticGainControl() = 0; |
168 | 170 |
169 // Returns the current muting state for the microphone. | 171 // Returns the current muting state for the microphone. |
170 virtual bool IsMuted() = 0; | 172 virtual bool IsMuted() = 0; |
171 }; | 173 }; |
172 | 174 |
173 } // namespace media | 175 } // namespace media |
174 | 176 |
175 #endif // MEDIA_AUDIO_AUDIO_IO_H_ | 177 #endif // MEDIA_AUDIO_AUDIO_IO_H_ |
OLD | NEW |