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

Unified Diff: media/audio/linux/alsa_util.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/linux/alsa_util.h
diff --git a/media/audio/linux/alsa_util.h b/media/audio/linux/alsa_util.h
index 5c9a0a04dc4c1cc2378fbd15074be98003c75a73..e6acc376ea7eeee2862f0a598b91a5e12f5b91ea 100644
--- a/media/audio/linux/alsa_util.h
+++ b/media/audio/linux/alsa_util.h
@@ -6,6 +6,7 @@
#define MEDIA_AUDIO_LINUX_ALSA_UTIL_H_
#include <alsa/asoundlib.h>
+#include <string>
class AlsaWrapper;
@@ -29,6 +30,15 @@ snd_pcm_t* OpenPlaybackDevice(AlsaWrapper* wrapper,
int CloseDevice(AlsaWrapper* wrapper, snd_pcm_t* handle);
+snd_mixer_t* OpenMixer(AlsaWrapper* wrapper, const std::string& device_name);
+
+void CloseMixer(AlsaWrapper* wrapper,
+ snd_mixer_t* mixer,
+ const std::string& device_name);
+
+snd_mixer_elem_t* LoadCaptureMixerElement(AlsaWrapper* wrapper,
+ snd_mixer_t* mixer);
+
}
#endif // MEDIA_AUDIO_LINUX_ALSA_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698