| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_OUTPUT_MAC_H_ | 5 #ifndef MEDIA_AUDIO_MAC_OUTPUT_MAC_H_ |
| 6 #define MEDIA_AUDIO_MAC_OUTPUT_MAC_H_ | 6 #define MEDIA_AUDIO_MAC_OUTPUT_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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // Structure that holds the stream format details such as bitrate. | 49 // Structure that holds the stream format details such as bitrate. |
| 50 AudioStreamBasicDescription format_; | 50 AudioStreamBasicDescription format_; |
| 51 // Handle to the OS audio queue object. | 51 // Handle to the OS audio queue object. |
| 52 AudioQueueRef audio_queue_; | 52 AudioQueueRef audio_queue_; |
| 53 // Array of pointers to the OS managed audio buffers. | 53 // Array of pointers to the OS managed audio buffers. |
| 54 AudioQueueBufferRef buffer_[kNumBuffers]; | 54 AudioQueueBufferRef buffer_[kNumBuffers]; |
| 55 // Pointer to the object that will provide the audio samples. | 55 // Pointer to the object that will provide the audio samples. |
| 56 AudioSourceCallback* source_; | 56 AudioSourceCallback* source_; |
| 57 // Our creator, the audio manager needs to be notified when we close. | 57 // Our creator, the audio manager needs to be notified when we close. |
| 58 AudioManagerMac* manager_; | 58 AudioManagerMac* manager_; |
| 59 // Number of bytes for make a silence buffer. |
| 60 int silence_bytes_; |
| 61 // Number of bytes yet to be played in audio buffer. |
| 62 int pending_bytes_; |
| 59 | 63 |
| 60 DISALLOW_COPY_AND_ASSIGN(PCMQueueOutAudioOutputStream); | 64 DISALLOW_COPY_AND_ASSIGN(PCMQueueOutAudioOutputStream); |
| 61 }; | 65 }; |
| 62 | 66 |
| 63 #endif // MEDIA_AUDIO_MAC_OUTPUT_MAC_H_ | 67 #endif // MEDIA_AUDIO_MAC_OUTPUT_MAC_H_ |
| OLD | NEW |