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