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

Unified Diff: content/renderer/media/audio_input_message_filter.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
« no previous file with comments | « content/common/media/audio_messages.h ('k') | content/renderer/media/audio_input_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_input_message_filter.h
===================================================================
--- content/renderer/media/audio_input_message_filter.h (revision 186364)
+++ content/renderer/media/audio_input_message_filter.h (working copy)
@@ -40,8 +40,12 @@
virtual int AddDelegate(
media::AudioInputIPCDelegate* delegate) OVERRIDE;
virtual void RemoveDelegate(int id) OVERRIDE;
- virtual void CreateStream(int stream_id, const media::AudioParameters& params,
- const std::string& device_id, bool automatic_gain_control) OVERRIDE;
+ virtual void CreateStream(
+ int stream_id,
+ const media::AudioParameters& params,
+ const std::string& device_id,
+ bool automatic_gain_control,
+ uint32 total_segments) OVERRIDE;
virtual void StartDevice(int stream_id, int session_id) OVERRIDE;
virtual void RecordStream(int stream_id) OVERRIDE;
virtual void CloseStream(int stream_id) OVERRIDE;
@@ -64,13 +68,15 @@
virtual void OnChannelClosing() OVERRIDE;
// Received when browser process has created an audio input stream.
- void OnStreamCreated(int stream_id, base::SharedMemoryHandle handle,
+ void OnStreamCreated(int stream_id,
+ base::SharedMemoryHandle handle,
#if defined(OS_WIN)
base::SyncSocket::Handle socket_handle,
#else
base::FileDescriptor socket_descriptor,
#endif
- uint32 length);
+ uint32 length,
+ uint32 total_segments);
// Notification of volume property of an audio input stream.
void OnStreamVolume(int stream_id, double volume);
« no previous file with comments | « content/common/media/audio_messages.h ('k') | content/renderer/media/audio_input_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698