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

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: Removed more size_t 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
« no previous file with comments | « media/audio/audio_util.cc ('k') | media/audio/win/audio_low_latency_input_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e236e4415c2f1e92f42aac5d82a7d4630061e9f0 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 uint32 HardwareChannelCount(ERole device_role);
+
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_;
« no previous file with comments | « media/audio/audio_util.cc ('k') | media/audio/win/audio_low_latency_input_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698