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

Unified Diff: media/audio/win/wavein_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/wavein_input_win.cc
diff --git a/media/audio/win/wavein_input_win.cc b/media/audio/win/wavein_input_win.cc
index d3f1162fdf95518d43d9f0f8628ce67547cd98ea..4e601c7ed80514ef743a1f1eba8cd9f6cd3d6b1c 100644
--- a/media/audio/win/wavein_input_win.cc
+++ b/media/audio/win/wavein_input_win.cc
@@ -187,6 +187,20 @@ void PCMWaveInAudioInputStream::Close() {
manager_->ReleaseInputStream(this);
}
+double PCMWaveInAudioInputStream::GetMaxVolume() {
+ // TODO(xians): Add volume support.
+ return 0.0;
+}
+
+void PCMWaveInAudioInputStream::SetVolume(double volume) {
+ // TODO(xians): Add volume support.
+}
+
+double PCMWaveInAudioInputStream::GetVolume() {
+ // TODO(xians): Add volume support.
+ return 0.0;
+}
+
void PCMWaveInAudioInputStream::HandleError(MMRESULT error) {
DLOG(WARNING) << "PCMWaveInAudio error " << error;
callback_->OnError(this, error);

Powered by Google App Engine
This is Rietveld 408576698