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

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

Issue 1130063002: Allowing a custom audio buffer size in WebRtcAudioCapturer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: content/renderer/media/webrtc_audio_capturer.h
diff --git a/content/renderer/media/webrtc_audio_capturer.h b/content/renderer/media/webrtc_audio_capturer.h
index ca10ff2ab399b782d9f1749e796c21540134056e..f1ada132fd5c97de08addb87a2c0bedb30f8ff5a 100644
--- a/content/renderer/media/webrtc_audio_capturer.h
+++ b/content/renderer/media/webrtc_audio_capturer.h
@@ -139,10 +139,12 @@ class CONTENT_EXPORT WebRtcAudioCapturer
// desires to provide their own captured audio data. Client is responsible
// for calling Start() on its own source to get the ball rolling.
// Called on the main render thread.
+ // buffer_size is optional. Set to 0 to let it be chosen automatically.
void SetCapturerSourceInternal(
const scoped_refptr<media::AudioCapturerSource>& source,
media::ChannelLayout channel_layout,
- float sample_rate);
+ int sample_rate,
+ int buffer_size);
// Starts recording audio.
// Triggered by AddSink() on the main render thread or a Libjingle working
« no previous file with comments | « no previous file | content/renderer/media/webrtc_audio_capturer.cc » ('j') | content/renderer/media/webrtc_audio_capturer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698