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

Unified Diff: media/audio/audio_input_ipc.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 | « media/audio/audio_input_device.cc ('k') | media/audio/audio_output_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_input_ipc.h
===================================================================
--- media/audio/audio_input_ipc.h (revision 186364)
+++ media/audio/audio_input_ipc.h (working copy)
@@ -34,7 +34,8 @@
// and process the shared memory whenever data is read from the socket.
virtual void OnStreamCreated(base::SharedMemoryHandle handle,
base::SyncSocket::Handle socket_handle,
- int length) = 0;
+ int length,
+ int total_segments) = 0;
// Called when state of an audio stream has changed.
virtual void OnStateChanged(State state) = 0;
@@ -73,11 +74,17 @@
// Sends a request to create an AudioInputController object in the peer
// process, identify it by |stream_id| and configure it to use the specified
- // audio |params|. Once the stream has been created, the implementation must
+ // audio |params|. The |total_segments| indidates number of equal-lengthed
+ // segments in the shared memory buffer.
+ // Once the stream has been created, the implementation must
// generate a notification to the AudioInputIPCDelegate and call
// OnStreamCreated().
- virtual void CreateStream(int stream_id, const AudioParameters& params,
- const std::string& device_id, bool automatic_gain_control) = 0;
+ virtual void CreateStream(
+ int stream_id,
+ const AudioParameters& params,
+ const std::string& device_id,
+ bool automatic_gain_control,
+ uint32 total_segments) = 0;
// Starts the device on the server side. Once the device has started,
// or failed to start, a callback to
« no previous file with comments | « media/audio/audio_input_device.cc ('k') | media/audio/audio_output_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698