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

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: 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/audio_io.h
diff --git a/media/audio/audio_io.h b/media/audio/audio_io.h
index 173f4f54363b65903b86baab30ecb9f0b5a29f58..00a7c7a46ab0012ca61daff3e91b7ec95ff69ace 100644
--- a/media/audio/audio_io.h
+++ b/media/audio/audio_io.h
@@ -154,6 +154,16 @@ 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;
+
+ // Returns the maximum microphone analog volume or 0.0 if device does not
+ // have volume control.
+ virtual double GetMaxVolume() = 0;
+
+ // Sets the microphone analog volume, with range [0, max_volume] inclusive.
+ virtual void SetVolume(double volume) = 0;
+
+ // Returns the microphone analog volume, with range [0, max_volume] inclusive.
+ virtual double GetVolume() = 0;
};
#endif // MEDIA_AUDIO_AUDIO_IO_H_

Powered by Google App Engine
This is Rietveld 408576698