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_AGC_AUDIO_STREAM_H_ | 5 #ifndef MEDIA_AUDIO_AGC_AUDIO_STREAM_H_ |
6 #define MEDIA_AUDIO_AGC_AUDIO_STREAM_H_ | 6 #define MEDIA_AUDIO_AGC_AUDIO_STREAM_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
10 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
11 #include "base/threading/thread_checker.h" | 12 #include "base/threading/thread_checker.h" |
12 #include "base/timer/timer.h" | 13 #include "base/timer/timer.h" |
13 #include "media/audio/audio_io.h" | 14 #include "media/audio/audio_io.h" |
14 | 15 |
15 // The template based AgcAudioStream implements platform-independent parts | 16 // The template based AgcAudioStream implements platform-independent parts |
16 // of the AudioInterface interface. Supported interfaces to pass as | 17 // of the AudioInterface interface. Supported interfaces to pass as |
17 // AudioInterface are AudioIntputStream and AudioOutputStream. Each platform- | 18 // AudioInterface are AudioIntputStream and AudioOutputStream. Each platform- |
18 // dependent implementation should derive from this class. | 19 // dependent implementation should derive from this class. |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 197 |
197 // Protects |normalized_volume_| . | 198 // Protects |normalized_volume_| . |
198 base::Lock lock_; | 199 base::Lock lock_; |
199 | 200 |
200 DISALLOW_COPY_AND_ASSIGN(AgcAudioStream<AudioInterface>); | 201 DISALLOW_COPY_AND_ASSIGN(AgcAudioStream<AudioInterface>); |
201 }; | 202 }; |
202 | 203 |
203 } // namespace media | 204 } // namespace media |
204 | 205 |
205 #endif // MEDIA_AUDIO_AGC_AUDIO_STREAM_H_ | 206 #endif // MEDIA_AUDIO_AGC_AUDIO_STREAM_H_ |
OLD | NEW |