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

Unified Diff: media/audio/audio_output_device.cc

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
« media/audio/audio_input_ipc.h ('K') | « media/audio/audio_input_ipc.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_device.cc
===================================================================
--- media/audio/audio_output_device.cc (revision 186364)
+++ media/audio/audio_output_device.cc (working copy)
@@ -257,7 +257,8 @@
AudioRendererSink::RenderCallback* render_callback)
: AudioDeviceThread::Callback(audio_parameters,
memory,
- memory_length),
+ memory_length,
+ 1),
render_callback_(render_callback) {
}
@@ -265,6 +266,7 @@
}
void AudioOutputDevice::AudioThreadCallback::MapSharedMemory() {
+ CHECK_EQ(1, total_segments_);
DaleCurtis 2013/03/07 02:04:37 TMYK: http://what-if.xkcd.com/3/
CHECK(shared_memory_.Map(TotalSharedMemorySizeInBytes(memory_length_)));
// Calculate output and input memory size.
« media/audio/audio_input_ipc.h ('K') | « media/audio/audio_input_ipc.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698