summaryrefslogtreecommitdiffstats
path: root/media/audio/mac/audio_input_mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/audio/mac/audio_input_mac.h')
-rw-r--r--media/audio/mac/audio_input_mac.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/media/audio/mac/audio_input_mac.h b/media/audio/mac/audio_input_mac.h
index ddef40f..1f9856f1 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);
};