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

Unified Diff: content/renderer/media/audio_input_message_filter.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
Index: content/renderer/media/audio_input_message_filter.cc
===================================================================
--- content/renderer/media/audio_input_message_filter.cc (revision 186364)
+++ content/renderer/media/audio_input_message_filter.cc (working copy)
@@ -94,7 +94,8 @@
#else
base::FileDescriptor socket_descriptor,
#endif
- uint32 length) {
+ uint32 length,
+ uint32 total_segments) {
DCHECK(io_message_loop_->BelongsToCurrentThread());
#if !defined(OS_WIN)
@@ -109,7 +110,7 @@
return;
}
// Forward message to the stream delegate.
- delegate->OnStreamCreated(handle, socket_handle, length);
+ delegate->OnStreamCreated(handle, socket_handle, length, total_segments);
}
void AudioInputMessageFilter::OnStreamVolume(int stream_id, double volume) {
@@ -160,9 +161,11 @@
void AudioInputMessageFilter::CreateStream(int stream_id,
const media::AudioParameters& params,
const std::string& device_id,
- bool automatic_gain_control) {
+ bool automatic_gain_control,
+ uint32 shared_memory_count) {
Send(new AudioInputHostMsg_CreateStream(
- stream_id, params, device_id, automatic_gain_control));
+ stream_id, params, device_id, automatic_gain_control,
+ shared_memory_count));
}
void AudioInputMessageFilter::AssociateStreamWithConsumer(int stream_id,

Powered by Google App Engine
This is Rietveld 408576698