| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_OUTPUT_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_OUTPUT_H_ |
| 6 #define MEDIA_AUDIO_AUDIO_OUTPUT_H_ | 6 #define MEDIA_AUDIO_AUDIO_OUTPUT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" |
| 9 |
| 8 // Low-level audio output support. To make sound there are 3 objects involved: | 10 // Low-level audio output support. To make sound there are 3 objects involved: |
| 9 // - AudioSource : produces audio samples on a pull model. Implements | 11 // - AudioSource : produces audio samples on a pull model. Implements |
| 10 // the AudioSourceCallback interface. | 12 // the AudioSourceCallback interface. |
| 11 // - AudioOutputStream : uses the AudioSource to render audio on a given | 13 // - AudioOutputStream : uses the AudioSource to render audio on a given |
| 12 // channel, format and sample frequency configuration. Data from the | 14 // channel, format and sample frequency configuration. Data from the |
| 13 // AudioSource is delivered in a 'pull' model. | 15 // AudioSource is delivered in a 'pull' model. |
| 14 // - AudioManager : factory for the AudioOutputStream objects, manager | 16 // - AudioManager : factory for the AudioOutputStream objects, manager |
| 15 // of the hardware resources and mixer control. | 17 // of the hardware resources and mixer control. |
| 16 // | 18 // |
| 17 // The number and configuration of AudioOutputStream does not need to match the | 19 // The number and configuration of AudioOutputStream does not need to match the |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // TODO(cpu): Define threading requirements for interacting with AudioManager. | 146 // TODO(cpu): Define threading requirements for interacting with AudioManager. |
| 145 static AudioManager* GetAudioManager(); | 147 static AudioManager* GetAudioManager(); |
| 146 | 148 |
| 147 protected: | 149 protected: |
| 148 virtual ~AudioManager() {} | 150 virtual ~AudioManager() {} |
| 149 }; | 151 }; |
| 150 | 152 |
| 151 | 153 |
| 152 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_H_ | 154 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_H_ |
| 153 | 155 |
| OLD | NEW |