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_OUTPUT_CONTROLLER_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_ |
6 #define MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_ | 6 #define MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_ |
7 | 7 |
8 #include "base/atomic_ref_count.h" | 8 #include "base/atomic_ref_count.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/timer.h" | 12 #include "base/timer/timer.h" |
13 #include "media/audio/audio_io.h" | 13 #include "media/audio/audio_io.h" |
14 #include "media/audio/audio_manager.h" | 14 #include "media/audio/audio_manager.h" |
15 #include "media/audio/audio_source_diverter.h" | 15 #include "media/audio/audio_source_diverter.h" |
16 #include "media/audio/simple_sources.h" | 16 #include "media/audio/simple_sources.h" |
17 #include "media/base/media_export.h" | 17 #include "media/base/media_export.h" |
18 | 18 |
19 // An AudioOutputController controls an AudioOutputStream and provides data | 19 // An AudioOutputController controls an AudioOutputStream and provides data |
20 // to this output stream. It has an important function that it executes | 20 // to this output stream. It has an important function that it executes |
21 // audio operations like play, pause, stop, etc. on a separate thread, | 21 // audio operations like play, pause, stop, etc. on a separate thread, |
22 // namely the audio manager thread. | 22 // namely the audio manager thread. |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 // EventHandler::OnAudbile() to be called whenever a transition to a period of | 237 // EventHandler::OnAudbile() to be called whenever a transition to a period of |
238 // silence or non-silence is detected. | 238 // silence or non-silence is detected. |
239 scoped_ptr<AudioSilenceDetector> silence_detector_; | 239 scoped_ptr<AudioSilenceDetector> silence_detector_; |
240 | 240 |
241 DISALLOW_COPY_AND_ASSIGN(AudioOutputController); | 241 DISALLOW_COPY_AND_ASSIGN(AudioOutputController); |
242 }; | 242 }; |
243 | 243 |
244 } // namespace media | 244 } // namespace media |
245 | 245 |
246 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_ | 246 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_ |
OLD | NEW |