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

Unified Diff: media/audio/audio_device_thread.h

Issue 12379071: Use multiple shared memory buffers cyclically for audio capture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: address a missed comment Created 7 years, 9 months 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
Index: media/audio/audio_device_thread.h
===================================================================
--- media/audio/audio_device_thread.h (revision 186364)
+++ media/audio/audio_device_thread.h (working copy)
@@ -38,7 +38,8 @@
public:
Callback(const AudioParameters& audio_parameters,
base::SharedMemoryHandle memory,
- int memory_length);
+ int memory_length,
+ int total_segments);
virtual ~Callback();
// One time initialization for the callback object on the audio thread.
@@ -61,6 +62,8 @@
base::SharedMemory shared_memory_;
const int memory_length_;
+ const int total_segments_;
+ int segment_length_;
private:
DISALLOW_COPY_AND_ASSIGN(Callback);

Powered by Google App Engine
This is Rietveld 408576698