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

Unified Diff: media/base/audio_buffer_converter.h

Issue 243573005: Fix the output request size for AudioBufferConverter requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use for_testing() Created 6 years, 8 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 | « no previous file | media/base/audio_buffer_converter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_buffer_converter.h
diff --git a/media/base/audio_buffer_converter.h b/media/base/audio_buffer_converter.h
index 9785b106bc7a0d24d0daf7860a04614be41cd782..9efbd16a233cf1f3709bb513e74a3ce2ebb6d8c2 100644
--- a/media/base/audio_buffer_converter.h
+++ b/media/base/audio_buffer_converter.h
@@ -42,6 +42,13 @@ class MEDIA_EXPORT AudioBufferConverter : public AudioConverter::InputCallback {
// timestamp will be set to match the input buffer.
void ResetTimestampState();
+ int input_buffer_size_for_testing() const {
+ return input_params_.frames_per_buffer();
+ }
+ int input_frames_left_for_testing() const {
+ return input_frames_;
+ }
+
private:
// Callback to provide data to the AudioConverter
virtual double ProvideInput(AudioBus* audio_bus,
« no previous file with comments | « no previous file | media/base/audio_buffer_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698