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

Unified Diff: media/base/audio_renderer_sink.h

Issue 11878032: Plumb |input_channels| all the way to AudioManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « media/audio/win/audio_manager_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_renderer_sink.h
===================================================================
--- media/base/audio_renderer_sink.h (revision 181072)
+++ media/base/audio_renderer_sink.h (working copy)
@@ -41,20 +41,16 @@
// Sets important information about the audio stream format.
// It must be called before any of the other methods.
+ // For clients wishing to have synchronized input and output,
+ // |params| may specify |input_channels| > 0, representing a
+ // number of input channels which will be at the same sample-rate
+ // and buffer-size as the output as specified in |params|.
+ // In this case, the callback's RenderIO() method will be called instead
+ // of Render(), providing the synchronized input data at the same time as
+ // when new output data is to be rendered.
virtual void Initialize(const AudioParameters& params,
RenderCallback* callback) = 0;
- // InitializeIO() may be called instead of Initialize() for clients who wish
- // to have synchronized input and output. |input_channels| specifies the
- // number of input channels which will be at the same sample-rate
- // and buffer-size as the output as specified in |params|.
- // The callback's RenderIO() method will be called instead of Render(),
- // providing the synchronized input data at the same time as when new
- // output data is to be rendered.
- virtual void InitializeIO(const AudioParameters& params,
- int input_channels,
- RenderCallback* callback) {}
-
// Starts audio playback.
virtual void Start() = 0;
« no previous file with comments | « media/audio/win/audio_manager_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698