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_MAC_AUDIO_INPUT_MAC_H_ | 5 #ifndef MEDIA_AUDIO_MAC_AUDIO_INPUT_MAC_H_ |
6 #define MEDIA_AUDIO_MAC_AUDIO_INPUT_MAC_H_ | 6 #define MEDIA_AUDIO_MAC_AUDIO_INPUT_MAC_H_ |
7 | 7 |
| 8 #include <AudioToolbox/AudioFormat.h> |
8 #include <AudioToolbox/AudioQueue.h> | 9 #include <AudioToolbox/AudioQueue.h> |
9 #include <AudioToolbox/AudioFormat.h> | |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/time.h" | 12 #include "base/time/time.h" |
13 #include "media/audio/audio_io.h" | 13 #include "media/audio/audio_io.h" |
14 #include "media/audio/audio_parameters.h" | 14 #include "media/audio/audio_parameters.h" |
15 | 15 |
16 namespace media { | 16 namespace media { |
17 | 17 |
18 class AudioManagerBase; | 18 class AudioManagerBase; |
19 | 19 |
20 // Implementation of AudioInputStream for Mac OS X using the audio queue service | 20 // Implementation of AudioInputStream for Mac OS X using the audio queue service |
21 // present in OS 10.5 and later. Design reflects PCMQueueOutAudioOutputStream. | 21 // present in OS 10.5 and later. Design reflects PCMQueueOutAudioOutputStream. |
22 class PCMQueueInAudioInputStream : public AudioInputStream { | 22 class PCMQueueInAudioInputStream : public AudioInputStream { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 bool started_; | 79 bool started_; |
80 // Used to determine if we need to slow down |callback_| calls. | 80 // Used to determine if we need to slow down |callback_| calls. |
81 base::TimeTicks last_fill_; | 81 base::TimeTicks last_fill_; |
82 | 82 |
83 DISALLOW_COPY_AND_ASSIGN(PCMQueueInAudioInputStream); | 83 DISALLOW_COPY_AND_ASSIGN(PCMQueueInAudioInputStream); |
84 }; | 84 }; |
85 | 85 |
86 } // namespace media | 86 } // namespace media |
87 | 87 |
88 #endif // MEDIA_AUDIO_MAC_AUDIO_INPUT_MAC_H_ | 88 #endif // MEDIA_AUDIO_MAC_AUDIO_INPUT_MAC_H_ |
OLD | NEW |