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

Unified Diff: media/base/fake_audio_render_callback.h

Issue 1070923002: Fix incorrect AudioConverter setup for discrete channel layouts. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « media/base/audio_converter_unittest.cc ('k') | media/base/fake_audio_render_callback.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/fake_audio_render_callback.h
diff --git a/media/base/fake_audio_render_callback.h b/media/base/fake_audio_render_callback.h
index 695365f98a7de89710fbf09fb8edffe30f7f747b..7805fc65c62ee25d317c765424c26ab8fbfd03af 100644
--- a/media/base/fake_audio_render_callback.h
+++ b/media/base/fake_audio_render_callback.h
@@ -42,16 +42,21 @@ class FakeAudioRenderCallback
// Returns the last |audio_delay_milliseconds| provided to Render() or -1 if
// no Render() call occurred.
- int last_audio_delay_milliseconds() { return last_audio_delay_milliseconds_; }
+ int last_audio_delay_milliseconds() const {
+ return last_audio_delay_milliseconds_;
+ }
// Set volume information used by ProvideAudioTransformInput().
void set_volume(double volume) { volume_ = volume; }
+ int last_channel_count() const { return last_channel_count_; }
+
private:
bool half_fill_;
double x_;
double step_;
int last_audio_delay_milliseconds_;
+ int last_channel_count_;
double volume_;
DISALLOW_COPY_AND_ASSIGN(FakeAudioRenderCallback);
« no previous file with comments | « media/base/audio_converter_unittest.cc ('k') | media/base/fake_audio_render_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698