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

Unified Diff: media/audio/audio_util.h

Issue 9826023: Merge AudioRendererImpl and AudioRendererBase; add NullAudioSink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase ToT + address CR comments Created 8 years, 9 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_util.h
diff --git a/media/audio/audio_util.h b/media/audio/audio_util.h
index 11ee38e97f096d2afb7635db96d35614e2c378f2..6984acaa8ab90575f9505097ae9d984e1be5705b 100644
--- a/media/audio/audio_util.h
+++ b/media/audio/audio_util.h
@@ -106,6 +106,10 @@ MEDIA_EXPORT size_t GetAudioHardwareBufferSize();
MEDIA_EXPORT ChannelLayout GetAudioInputHardwareChannelLayout(
const std::string& device_id);
+// Computes a buffer size based on the given |sample_rate|. Must be used in
+// conjunction with AUDIO_PCM_LINEAR.
+MEDIA_EXPORT size_t GetHighLatencyOutputBufferSize(int sample_rate);
+
// Functions that handle data buffer passed between processes in the shared
// memory. Called on both IPC sides.

Powered by Google App Engine
This is Rietveld 408576698