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

Unified Diff: media/audio/audio_output_device.h

Issue 10830268: Allow audio system to handle synchronized low-latency audio I/O (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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_output_controller_unittest.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_output_device.h
===================================================================
--- media/audio/audio_output_device.h (revision 156123)
+++ media/audio/audio_output_device.h (working copy)
@@ -80,6 +80,9 @@
// AudioRendererSink implementation.
virtual void Initialize(const AudioParameters& params,
RenderCallback* callback) OVERRIDE;
+ virtual void InitializeIO(const AudioParameters& params,
+ int input_channels,
+ RenderCallback* callback) OVERRIDE;
virtual void Start() OVERRIDE;
virtual void Stop() OVERRIDE;
virtual void Play() OVERRIDE;
@@ -112,7 +115,8 @@
// The following methods are tasks posted on the IO thread that needs to
// be executed on that thread. They interact with AudioMessageFilter and
// sends IPC messages on that thread.
- void CreateStreamOnIOThread(const AudioParameters& params);
+ void CreateStreamOnIOThread(const AudioParameters& params,
+ int input_channels);
void PlayOnIOThread();
void PauseOnIOThread(bool flush);
void ShutDownOnIOThread();
@@ -124,6 +128,10 @@
AudioParameters audio_parameters_;
+ // The number of optional synchronized input channels having the same
+ // sample-rate and buffer-size as specified in audio_parameters_.
+ int input_channels_;
+
RenderCallback* callback_;
// A pointer to the IPC layer that takes care of sending requests over to
« no previous file with comments | « media/audio/audio_output_controller_unittest.cc ('k') | media/audio/audio_output_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698