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

Unified Diff: media/filters/audio_renderer_algorithm_base.h

Issue 157001: Modify OLA to use window size in seconds instead of bytes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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/filters/audio_renderer_algorithm_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_renderer_algorithm_base.h
===================================================================
--- media/filters/audio_renderer_algorithm_base.h (revision 20385)
+++ media/filters/audio_renderer_algorithm_base.h (working copy)
@@ -45,6 +45,7 @@
// Checks validity of audio parameters and takes ownership of |callback|.
virtual void Initialize(int channels,
+ int sample_rate,
int sample_bits,
float initial_playback_rate,
RequestReadCallback* callback);
@@ -82,12 +83,16 @@
// Number of audio channels.
virtual int channels();
+ // Sample rate in hertz.
+ virtual int sample_rate();
+
// Number of bytes per sample per channel.
virtual int sample_bytes();
private:
// Audio properties.
int channels_;
+ int sample_rate_;
int sample_bytes_;
// Used by algorithm to scale output.
« no previous file with comments | « no previous file | media/filters/audio_renderer_algorithm_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698