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" |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 SyncReader* const sync_reader_; | 241 SyncReader* const sync_reader_; |
242 | 242 |
243 // The message loop of audio manager thread that this object runs on. | 243 // The message loop of audio manager thread that this object runs on. |
244 const scoped_refptr<base::SingleThreadTaskRunner> message_loop_; | 244 const scoped_refptr<base::SingleThreadTaskRunner> message_loop_; |
245 | 245 |
246 // Scans audio samples from OnMoreData() as input to compute power levels. | 246 // Scans audio samples from OnMoreData() as input to compute power levels. |
247 AudioPowerMonitor power_monitor_; | 247 AudioPowerMonitor power_monitor_; |
248 | 248 |
249 // Flags when we've asked for a stream to start but it never did. | 249 // Flags when we've asked for a stream to start but it never did. |
250 base::AtomicRefCount on_more_io_data_called_; | 250 base::AtomicRefCount on_more_io_data_called_; |
251 scoped_ptr<base::OneShotTimer<AudioOutputController> > wedge_timer_; | 251 scoped_ptr<base::OneShotTimer> wedge_timer_; |
252 | 252 |
253 DISALLOW_COPY_AND_ASSIGN(AudioOutputController); | 253 DISALLOW_COPY_AND_ASSIGN(AudioOutputController); |
254 }; | 254 }; |
255 | 255 |
256 } // namespace media | 256 } // namespace media |
257 | 257 |
258 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_ | 258 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_CONTROLLER_H_ |
OLD | NEW |