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

Unified Diff: media/audio/audio_manager_base.h

Issue 10918098: Introduce AudioOutputResampler for browser side resampling. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comments. Created 8 years, 3 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/audio/audio_manager_base.h
diff --git a/media/audio/audio_manager_base.h b/media/audio/audio_manager_base.h
index 498b44c9b27e8f3fa4ab8cb6a140e88f544589ca..bbbb83aedc798421ce2957acb8f1fff59f298490 100644
--- a/media/audio/audio_manager_base.h
+++ b/media/audio/audio_manager_base.h
@@ -80,6 +80,15 @@ class MEDIA_EXPORT AudioManagerBase : public AudioManager {
virtual AudioInputStream* MakeLowLatencyInputStream(
const AudioParameters& params, const std::string& device_id) = 0;
+ // Returns the preferred hardware audio output parameters for opening output
+ // streams in the |AUDIO_PCM_LOW_LATENCY| format.
+ // TODO(dalecurtis): Retrieve the |channel_layout| value from hardware instead
+ // of accepting the value.
+ // TODO(dalecurtis): Each AudioManager should implement their own version, see
+ // http://crbug.com/137326
+ virtual AudioParameters GetPreferredLowLatencyOutputStreamParameters(
+ ChannelLayout channel_layout);
+
protected:
AudioManagerBase();

Powered by Google App Engine
This is Rietveld 408576698