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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 #include "base/time/time.h" | 51 #include "base/time/time.h" |
52 #include "base/timer/timer.h" | 52 #include "base/timer/timer.h" |
53 #include "media/audio/agc_audio_stream.h" | 53 #include "media/audio/agc_audio_stream.h" |
54 #include "media/audio/audio_io.h" | 54 #include "media/audio/audio_io.h" |
55 #include "media/audio/audio_manager.h" | 55 #include "media/audio/audio_manager.h" |
56 #include "media/base/audio_block_fifo.h" | 56 #include "media/base/audio_block_fifo.h" |
57 #include "media/base/audio_parameters.h" | 57 #include "media/base/audio_parameters.h" |
58 | 58 |
59 namespace media { | 59 namespace media { |
60 | 60 |
61 class AudioBus; | |
62 class AudioManagerMac; | 61 class AudioManagerMac; |
63 class DataBuffer; | |
64 | 62 |
65 class MEDIA_EXPORT AUAudioInputStream | 63 class MEDIA_EXPORT AUAudioInputStream |
66 : public AgcAudioStream<AudioInputStream> { | 64 : public AgcAudioStream<AudioInputStream> { |
67 public: | 65 public: |
68 // The ctor takes all the usual parameters, plus |manager| which is the | 66 // The ctor takes all the usual parameters, plus |manager| which is the |
69 // the audio manager who is creating this object. | 67 // the audio manager who is creating this object. |
70 AUAudioInputStream(AudioManagerMac* manager, | 68 AUAudioInputStream(AudioManagerMac* manager, |
71 const AudioParameters& input_params, | 69 const AudioParameters& input_params, |
72 AudioDeviceID audio_device_id, | 70 AudioDeviceID audio_device_id, |
73 const AudioManager::LogCallback& log_callback); | 71 const AudioManager::LogCallback& log_callback); |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 // this object is destroyed. | 331 // this object is destroyed. |
334 // Note that, all member variables should appear before the WeakPtrFactory. | 332 // Note that, all member variables should appear before the WeakPtrFactory. |
335 base::WeakPtrFactory<AUAudioInputStream> weak_factory_; | 333 base::WeakPtrFactory<AUAudioInputStream> weak_factory_; |
336 | 334 |
337 DISALLOW_COPY_AND_ASSIGN(AUAudioInputStream); | 335 DISALLOW_COPY_AND_ASSIGN(AUAudioInputStream); |
338 }; | 336 }; |
339 | 337 |
340 } // namespace media | 338 } // namespace media |
341 | 339 |
342 #endif // MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_INPUT_MAC_H_ | 340 #endif // MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_INPUT_MAC_H_ |
OLD | NEW |