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

Unified Diff: media/base/audio_hardware_config.h

Issue 235723003: Use larger buffer sizes for lower power on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test on other platforms. 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 | « media/audio/pulse/audio_manager_pulse.cc ('k') | media/base/audio_hardware_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_hardware_config.h
diff --git a/media/base/audio_hardware_config.h b/media/base/audio_hardware_config.h
index d1621b98224bf6fcc3dcf4cea55d189d79d73d55..a4baaac097909be858f61533e0260ce92a5845bf 100644
--- a/media/base/audio_hardware_config.h
+++ b/media/base/audio_hardware_config.h
@@ -41,6 +41,10 @@ class MEDIA_EXPORT AudioHardwareConfig {
void UpdateInputConfig(const media::AudioParameters& input_params);
void UpdateOutputConfig(const media::AudioParameters& output_params);
+ // For clients which don't need low latency, a larger buffer size should be
+ // used to save power and CPU resources.
+ int GetHighLatencyBufferSize() const;
+
private:
// Cached values; access is protected by |config_lock_|.
mutable base::Lock config_lock_;
« no previous file with comments | « media/audio/pulse/audio_manager_pulse.cc ('k') | media/base/audio_hardware_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698