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

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

Issue 2941773002: Added initial muted state to stream creation callback, to avoid races. (Closed)
Patch Set: Added mute information to DoCompleteCreation log message. Created 3 years, 6 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
diff --git a/content/common/media/audio_messages.h b/content/common/media/audio_messages.h
index 1fed2874859ad47b4607164e94ff5896d2ff993e..f9186608d511cbfc50eeb96fe34fcfa1cdc242c4 100644
--- a/content/common/media/audio_messages.h
+++ b/content/common/media/audio_messages.h
@@ -54,15 +54,16 @@ IPC_MESSAGE_CONTROL4(
uint32_t /* length */)
// 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. It is also given number of segments in shared memory.
-IPC_MESSAGE_CONTROL5(
- AudioInputMsg_NotifyStreamCreated,
- int /* stream id */,
- base::SharedMemoryHandle /* handle */,
- base::SyncSocket::TransitDescriptor /* socket descriptor */,
- uint32_t /* length */,
- uint32_t /* segment count */)
+// The renderer process would be given a SyncSocket that it should read from
+// from then on. It is also given number of segments in shared memory and
+// whether the stream initially is muted.
+IPC_MESSAGE_CONTROL(AudioInputMsg_NotifyStreamCreated,
+ int /* stream id */,
+ base::SharedMemoryHandle /* handle */,
+ base::SyncSocket::TransitDescriptor /* socket descriptor */,
+ uint32_t /* length */,
+ uint32_t /* segment count */,
+ bool /* initially muted */)
// Notification message sent from AudioRendererHost to renderer for state
// update on error.
« no previous file with comments | « content/browser/speech/speech_recognizer_impl.h ('k') | content/renderer/media/audio_input_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698