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

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

Issue 9221010: Adds support for 16kHz input sample rate and mono channel config. in WebRTC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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/audio_hardware.h
diff --git a/content/renderer/media/audio_hardware.h b/content/renderer/media/audio_hardware.h
index c6030733a11697d2b316ef3a3c5d0f10f7cc8db1..fd811445aaf00942d6fc5ece84928d11555b8962 100644
--- a/content/renderer/media/audio_hardware.h
+++ b/content/renderer/media/audio_hardware.h
@@ -26,6 +26,10 @@ CONTENT_EXPORT double GetInputSampleRate();
// Must be called from RenderThreadImpl::current().
CONTENT_EXPORT size_t GetOutputBufferSize();
+// Fetch the number of audio channels for the default input device.
+// Must be called from RenderThreadImpl::current().
+CONTENT_EXPORT size_t GetInputChannels();
tommi (sloooow) - chröme 2012/01/17 12:01:08 change to GetInputChannelCount.
henrika (OOO until Aug 14) 2012/01/17 12:54:59 Done.
+
// Forces the next call to any of the Get functions to query the hardware
// and repopulate the cache.
CONTENT_EXPORT void ResetCache();

Powered by Google App Engine
This is Rietveld 408576698