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

Side by Side 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: small changes on alsa code 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_AUDIO_AUDIO_IO_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_IO_H_
6 #define MEDIA_AUDIO_AUDIO_IO_H_ 6 #define MEDIA_AUDIO_AUDIO_IO_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "media/audio/audio_buffers_state.h" 9 #include "media/audio/audio_buffers_state.h"
10 10
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 virtual void Start(AudioInputCallback* callback) = 0; 147 virtual void Start(AudioInputCallback* callback) = 0;
148 148
149 // Stops recording audio. Effect might not be instantaneous as there could be 149 // Stops recording audio. Effect might not be instantaneous as there could be
150 // pending audio callbacks in the queue which will be issued first before 150 // pending audio callbacks in the queue which will be issued first before
151 // recording stops. 151 // recording stops.
152 virtual void Stop() = 0; 152 virtual void Stop() = 0;
153 153
154 // Close the stream. This also generates AudioInputCallback::OnClose(). This 154 // Close the stream. This also generates AudioInputCallback::OnClose(). This
155 // should be the last call made on this object. 155 // should be the last call made on this object.
156 virtual void Close() = 0; 156 virtual void Close() = 0;
157
158 // Returns the maximum microphone analog volume.
henrika (OOO until Aug 14) 2012/02/23 11:50:41 Perhaps add a comment about return value <=> error
no longer working on chromium 2012/02/24 09:27:48 Done.
159 virtual double GetMaxVolume() = 0;
160
161 // Sets the microphone analog volume, with range [0, max_volume] inclusive.
162 virtual void SetVolume(double volume) = 0;
163
164 // Returns the microphone analog volume, with range [0, max_volume] inclusive.
165 virtual double GetVolume() = 0;
157 }; 166 };
158 167
159 #endif // MEDIA_AUDIO_AUDIO_IO_H_ 168 #endif // MEDIA_AUDIO_AUDIO_IO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698