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

Unified Diff: content/common/media/audio_messages.h

Issue 12379071: Use multiple shared memory buffers cyclically for audio capture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: code review 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/common/media/audio_messages.h
===================================================================
--- content/common/media/audio_messages.h (revision 186364)
+++ content/common/media/audio_messages.h (working copy)
@@ -48,19 +48,21 @@
// Tell the renderer process that an audio input stream has been created.
// The renderer process would be given a SyncSocket that it should read
-// from from then on.
+// from from then on. It is also given number of segments in shared memory.
#if defined(OS_WIN)
-IPC_MESSAGE_CONTROL4(AudioInputMsg_NotifyStreamCreated,
+IPC_MESSAGE_CONTROL5(AudioInputMsg_NotifyStreamCreated,
int /* stream id */,
base::SharedMemoryHandle /* handle */,
base::SyncSocket::Handle /* socket handle */,
- uint32 /* length */)
+ uint32 /* length */,
+ uint32 /* segment count */)
#else
-IPC_MESSAGE_CONTROL4(AudioInputMsg_NotifyStreamCreated,
+IPC_MESSAGE_CONTROL5(AudioInputMsg_NotifyStreamCreated,
int /* stream id */,
base::SharedMemoryHandle /* handle */,
base::FileDescriptor /* socket handle */,
- uint32 /* length */)
+ uint32 /* length */,
+ uint32 /* segment count */)
#endif
// Notification message sent from AudioRendererHost to renderer after an output
@@ -97,11 +99,12 @@
media::AudioParameters /* params */)
// Request that got sent to browser for creating an audio input stream
-IPC_MESSAGE_CONTROL4(AudioInputHostMsg_CreateStream,
+IPC_MESSAGE_CONTROL5(AudioInputHostMsg_CreateStream,
int /* stream_id */,
media::AudioParameters /* params */,
std::string /* device_id */,
- bool /* automatic_gain_control */)
+ bool /* automatic_gain_control */,
+ uint32 /* shared memory count */)
// Indicate that audio for a stream is produced by the specified render view.
IPC_MESSAGE_CONTROL2(AudioHostMsg_AssociateStreamWithProducer,
« no previous file with comments | « content/browser/renderer_host/media/audio_input_sync_writer.cc ('k') | content/renderer/media/audio_input_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698