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

Unified Diff: media/filters/audio_renderer_algorithm_base.h

Issue 9344002: Introduce AudioRendererAlgorithmBase::VerifyConfig. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Spacing. Created 8 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
Index: media/filters/audio_renderer_algorithm_base.h
diff --git a/media/filters/audio_renderer_algorithm_base.h b/media/filters/audio_renderer_algorithm_base.h
index d11dbb662418d572e77742854f376af143692181..5bc7a52eb623e8f02e38ac610f5abf7d7c00f0f3 100644
--- a/media/filters/audio_renderer_algorithm_base.h
+++ b/media/filters/audio_renderer_algorithm_base.h
@@ -35,6 +35,13 @@ class MEDIA_EXPORT AudioRendererAlgorithmBase {
AudioRendererAlgorithmBase();
~AudioRendererAlgorithmBase();
+ // Call prior to Initialize() to validate configuration. Returns false if the
+ // configuration is invalid. Detailed error information will be DLOG'd.
+ bool VerifyConfig(int channels,
Ami GONE FROM CHROMIUM 2012/02/07 21:08:42 static
Ami GONE FROM CHROMIUM 2012/02/07 21:08:42 s/Verify/Validate/
DaleCurtis 2012/02/07 22:48:03 Done.
DaleCurtis 2012/02/07 22:48:03 Done.
+ int samples_per_second,
+ int bits_per_channel,
+ float initial_playback_rate);
+
// Initializes this object with information about the audio stream.
// |samples_per_second| is in Hz. |read_request_callback| is called to
// request more data from the client, requests that are fulfilled through
« no previous file with comments | « no previous file | media/filters/audio_renderer_algorithm_base.cc » ('j') | media/filters/audio_renderer_algorithm_base.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698