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

Unified Diff: media/audio/win/audio_low_latency_input_win.cc

Issue 9418042: Adding microphone volume support to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added a comment about the number of channel, and fix a compiling issue on mac Created 8 years, 10 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.cc
diff --git a/media/audio/win/audio_low_latency_input_win.cc b/media/audio/win/audio_low_latency_input_win.cc
index 172d82198bb8e968331b8f9f1de796497da1c0b8..708d8898f23d26cef1eb2c571de17cb6185e093f 100644
--- a/media/audio/win/audio_low_latency_input_win.cc
+++ b/media/audio/win/audio_low_latency_input_win.cc
@@ -182,6 +182,20 @@ void WASAPIAudioInputStream::Close() {
manager_->ReleaseInputStream(this);
}
+double WASAPIAudioInputStream::GetMaxVolume() {
+ // TODO(xians): Add volume support.
+ return 0.0;
+}
+
+void WASAPIAudioInputStream::SetVolume(double volume) {
+ // TODO(xians): Add volume support.
+}
+
+double WASAPIAudioInputStream::GetVolume() {
+ // TODO(xians): Add volume support.
+ return 0.0;
+}
+
// static
double WASAPIAudioInputStream::HardwareSampleRate(ERole device_role) {
base::win::ScopedCoMem<WAVEFORMATEX> audio_engine_mix_format;

Powered by Google App Engine
This is Rietveld 408576698