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

Unified Diff: media/audio/win/audio_low_latency_input_win.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: media/audio/win/audio_low_latency_input_win.h
diff --git a/media/audio/win/audio_low_latency_input_win.h b/media/audio/win/audio_low_latency_input_win.h
index ebaab9307b0943b3a33a09f06ee825b5948b061e..341d75de6a7a623aade57c5fc9e7557b60a44b13 100644
--- a/media/audio/win/audio_low_latency_input_win.h
+++ b/media/audio/win/audio_low_latency_input_win.h
@@ -89,10 +89,14 @@ class MEDIA_EXPORT WASAPIAudioInputStream
virtual void Stop() OVERRIDE;
virtual void Close() OVERRIDE;
- // Retrieves the stream format that the audio engine uses for its internal
+ // Retrieves the sample rate used by the audio engine for its internal
// processing/mixing of shared-mode streams.
static double HardwareSampleRate(ERole device_role);
+ // Retrieves the number of audio channels used by the audio engine for its
+ // internal processing/mixing of shared-mode streams.
+ static size_t HardwareChannels(ERole device_role);
tommi (sloooow) - chröme 2012/01/17 12:01:08 HardwareChannelCount
henrika (OOO until Aug 14) 2012/01/17 12:54:59 Done.
+
bool started() const { return started_; }
private:
@@ -109,6 +113,10 @@ class MEDIA_EXPORT WASAPIAudioInputStream
bool DesiredFormatIsSupported();
HRESULT InitializeAudioEngine();
+ // Retrieves the stream format that the audio engine uses for its internal
+ // processing/mixing of shared-mode streams.
+ static HRESULT GetMixFormat(ERole device_role, WAVEFORMATEX** device_format);
+
// Initializes the COM library for use by the calling thread and set the
// thread's concurrency model to multi-threaded.
base::win::ScopedCOMInitializer com_init_;

Powered by Google App Engine
This is Rietveld 408576698