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

Unified Diff: media/audio/audio_io.h

Issue 9418042: Adding microphone volume support to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments from reviewers 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
« no previous file with comments | « media/audio/audio_input_volume_unittest.cc ('k') | media/audio/fake_audio_input_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_io.h
diff --git a/media/audio/audio_io.h b/media/audio/audio_io.h
index 173f4f54363b65903b86baab30ecb9f0b5a29f58..5265260f9b1412e9bc3eab4b5303ee6276a75129 100644
--- a/media/audio/audio_io.h
+++ b/media/audio/audio_io.h
@@ -154,6 +154,15 @@ class MEDIA_EXPORT AudioInputStream {
// Close the stream. This also generates AudioInputCallback::OnClose(). This
// should be the last call made on this object.
virtual void Close() = 0;
+
+ // Gets the maximum microphone analog volume.
+ virtual void GetMaxMicVolume(double* max_volume) = 0;
scherkus (not reviewing) 2012/02/21 19:20:01 do we really want to introduce "Mic" into our nami
no longer working on chromium 2012/02/22 17:02:23 Done, removed the "Mic".
+
+ // Sets the microphone analog volume, with range [0.0, max_volume] inclusive.
+ virtual void SetMicVolume(double volume) = 0;
+
+ // Gets the microphone analog volume, with range [0.0, max_volume] inclusive.
+ virtual void GetMicVolume(double* volume) = 0;
scherkus (not reviewing) 2012/02/21 19:20:01 any reason why these getters need to use out-param
no longer working on chromium 2012/02/22 17:27:24 Thanks for pointing out, I was assuming the code i
};
#endif // MEDIA_AUDIO_AUDIO_IO_H_
« no previous file with comments | « media/audio/audio_input_volume_unittest.cc ('k') | media/audio/fake_audio_input_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698