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

Unified Diff: content/renderer/media/webrtc_audio_renderer.h

Issue 646033007: Use the optimal buffer size for the local audio renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | content/renderer/media/webrtc_audio_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webrtc_audio_renderer.h
diff --git a/content/renderer/media/webrtc_audio_renderer.h b/content/renderer/media/webrtc_audio_renderer.h
index 119853472b64f6e0b1174a07349b34319c48bfdb..9accf6a3059b5c4bc70dfb8381f1d35ddce11f35 100644
--- a/content/renderer/media/webrtc_audio_renderer.h
+++ b/content/renderer/media/webrtc_audio_renderer.h
@@ -69,6 +69,10 @@ class CONTENT_EXPORT WebRtcAudioRenderer
float volume_;
};
+
+ // Returns platform specific optimal buffer size for rendering audio.
+ static int GetOptimalBufferSize(int sample_rate, int hardware_buffer_size);
+
WebRtcAudioRenderer(
const scoped_refptr<webrtc::MediaStreamInterface>& media_stream,
int source_render_view_id,
« no previous file with comments | « no previous file | content/renderer/media/webrtc_audio_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698