| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/AudioQueue.h> | 8 #include <AudioToolbox/AudioQueue.h> |
| 9 #include <AudioToolbox/AudioFormat.h> | 9 #include <AudioToolbox/AudioFormat.h> |
| 10 | 10 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // Manager that owns this stream, used for closing down. | 60 // Manager that owns this stream, used for closing down. |
| 61 AudioManagerMac* manager_; | 61 AudioManagerMac* manager_; |
| 62 // We use the callback mostly to periodically supply the recorded audio data. | 62 // We use the callback mostly to periodically supply the recorded audio data. |
| 63 AudioInputCallback* callback_; | 63 AudioInputCallback* callback_; |
| 64 // Structure that holds the stream format details such as bitrate. | 64 // Structure that holds the stream format details such as bitrate. |
| 65 AudioStreamBasicDescription format_; | 65 AudioStreamBasicDescription format_; |
| 66 // Handle to the OS audio queue object. | 66 // Handle to the OS audio queue object. |
| 67 AudioQueueRef audio_queue_; | 67 AudioQueueRef audio_queue_; |
| 68 // Size of each of the buffers in |audio_buffers_| | 68 // Size of each of the buffers in |audio_buffers_| |
| 69 uint32 buffer_size_bytes_; | 69 uint32 buffer_size_bytes_; |
| 70 // True iff Start() has been called successfully. |
| 71 bool started_; |
| 70 | 72 |
| 71 DISALLOW_COPY_AND_ASSIGN(PCMQueueInAudioInputStream); | 73 DISALLOW_COPY_AND_ASSIGN(PCMQueueInAudioInputStream); |
| 72 }; | 74 }; |
| 73 | 75 |
| 74 #endif // MEDIA_AUDIO_MAC_AUDIO_INPUT_MAC_H_ | 76 #endif // MEDIA_AUDIO_MAC_AUDIO_INPUT_MAC_H_ |
| OLD | NEW |