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 // Implementation of AudioInputStream for Mac OS X using the special AUHAL | 5 // Implementation of AudioInputStream for Mac OS X using the special AUHAL |
6 // input Audio Unit present in OS 10.4 and later. | 6 // input Audio Unit present in OS 10.4 and later. |
7 // The AUHAL input Audio Unit is for low-latency audio I/O. | 7 // The AUHAL input Audio Unit is for low-latency audio I/O. |
8 // | 8 // |
9 // Overview of operation: | 9 // Overview of operation: |
10 // | 10 // |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "base/atomicops.h" | 44 #include "base/atomicops.h" |
45 #include "base/cancelable_callback.h" | 45 #include "base/cancelable_callback.h" |
46 #include "base/macros.h" | 46 #include "base/macros.h" |
47 #include "base/memory/scoped_ptr.h" | 47 #include "base/memory/scoped_ptr.h" |
48 #include "base/memory/weak_ptr.h" | 48 #include "base/memory/weak_ptr.h" |
49 #include "base/threading/thread_checker.h" | 49 #include "base/threading/thread_checker.h" |
50 #include "base/time/time.h" | 50 #include "base/time/time.h" |
51 #include "base/timer/timer.h" | 51 #include "base/timer/timer.h" |
52 #include "media/audio/agc_audio_stream.h" | 52 #include "media/audio/agc_audio_stream.h" |
53 #include "media/audio/audio_io.h" | 53 #include "media/audio/audio_io.h" |
54 #include "media/audio/audio_parameters.h" | |
55 #include "media/base/audio_block_fifo.h" | 54 #include "media/base/audio_block_fifo.h" |
| 55 #include "media/base/audio_parameters.h" |
56 | 56 |
57 namespace media { | 57 namespace media { |
58 | 58 |
59 class AudioBus; | 59 class AudioBus; |
60 class AudioManagerMac; | 60 class AudioManagerMac; |
61 class DataBuffer; | 61 class DataBuffer; |
62 | 62 |
63 class MEDIA_EXPORT AUAudioInputStream | 63 class MEDIA_EXPORT AUAudioInputStream |
64 : public AgcAudioStream<AudioInputStream> { | 64 : public AgcAudioStream<AudioInputStream> { |
65 public: | 65 public: |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 // this object is destroyed. | 327 // this object is destroyed. |
328 // Note that, all member variables should appear before the WeakPtrFactory. | 328 // Note that, all member variables should appear before the WeakPtrFactory. |
329 base::WeakPtrFactory<AUAudioInputStream> weak_factory_; | 329 base::WeakPtrFactory<AUAudioInputStream> weak_factory_; |
330 | 330 |
331 DISALLOW_COPY_AND_ASSIGN(AUAudioInputStream); | 331 DISALLOW_COPY_AND_ASSIGN(AUAudioInputStream); |
332 }; | 332 }; |
333 | 333 |
334 } // namespace media | 334 } // namespace media |
335 | 335 |
336 #endif // MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_INPUT_MAC_H_ | 336 #endif // MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_INPUT_MAC_H_ |
OLD | NEW |