Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1454)

Unified Diff: media/audio/mac/audio_input_mac.h

Issue 11546002: Merge 171701 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1271_97/src/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/audio_input_unittest.cc ('k') | media/audio/mac/audio_input_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/mac/audio_input_mac.h
===================================================================
--- media/audio/mac/audio_input_mac.h (revision 172427)
+++ media/audio/mac/audio_input_mac.h (working copy)
@@ -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 @@
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 @@
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);
};
« no previous file with comments | « media/audio/audio_input_unittest.cc ('k') | media/audio/mac/audio_input_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698