Index: media/audio/mac/audio_input_mac.h |
diff --git a/media/audio/mac/audio_input_mac.h b/media/audio/mac/audio_input_mac.h |
index ddef40f2faf0d4951949ad63d213982890b4a491..1f9856f18c182593d2ba8bdf8eb0a8d8c8559de2 100644 |
--- a/media/audio/mac/audio_input_mac.h |
+++ b/media/audio/mac/audio_input_mac.h |
@@ -9,6 +9,7 @@ |
#include <AudioToolbox/AudioFormat.h> |
#include "base/compiler_specific.h" |
+#include "base/time.h" |
#include "media/audio/audio_io.h" |
#include "media/audio/audio_parameters.h" |
@@ -62,7 +63,7 @@ class PCMQueueInAudioInputStream : public AudioInputStream { |
UInt32 num_packets, |
const AudioStreamPacketDescription* packet_desc); |
- static const int kNumberBuffers = 1; |
+ static const int kNumberBuffers = 3; |
// Manager that owns this stream, used for closing down. |
AudioManagerBase* manager_; |
@@ -76,6 +77,8 @@ class PCMQueueInAudioInputStream : public AudioInputStream { |
uint32 buffer_size_bytes_; |
// True iff Start() has been called successfully. |
bool started_; |
+ // Used to determine if we need to slow down |callback_| calls. |
+ base::Time last_fill_; |
DISALLOW_COPY_AND_ASSIGN(PCMQueueInAudioInputStream); |
}; |