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

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: rebase Created 7 years, 10 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 186213)
+++ content/common/media/audio_messages.h (working copy)
@@ -48,21 +48,27 @@
// 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 total number of shared memory handles.
#if defined(OS_WIN)
-IPC_MESSAGE_CONTROL4(AudioInputMsg_NotifyStreamCreated,
+IPC_MESSAGE_CONTROL3(AudioInputMsg_NotifyStreamCreated,
int /* stream id */,
- base::SharedMemoryHandle /* handle */,
base::SyncSocket::Handle /* socket handle */,
- uint32 /* length */)
+ uint32 /* total shared memory handles */)
+
#else
-IPC_MESSAGE_CONTROL4(AudioInputMsg_NotifyStreamCreated,
+IPC_MESSAGE_CONTROL3(AudioInputMsg_NotifyStreamCreated,
int /* stream id */,
- base::SharedMemoryHandle /* handle */,
base::FileDescriptor /* socket handle */,
- uint32 /* length */)
+ uint32 /* total shared memory handles */)
#endif
+// Tell the renderer process that a shared memory handle has been created.
+IPC_MESSAGE_CONTROL4(AudioInputMsg_NotifySharedMemoryCreated,
+ int /* stream id */,
+ base::SharedMemoryHandle /* handle */,
+ uint32 /* length */,
+ uint32 /* handle index */)
+
// Notification message sent from AudioRendererHost to renderer after an output
// device change has occurred.
IPC_MESSAGE_CONTROL3(AudioMsg_NotifyDeviceChanged,
@@ -97,11 +103,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 */,
+ int /* shared memory count */)
// Indicate that audio for a stream is produced by the specified render view.
IPC_MESSAGE_CONTROL2(AudioHostMsg_AssociateStreamWithProducer,

Powered by Google App Engine
This is Rietveld 408576698