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

Unified Diff: chrome/browser/chromeos/audio_mixer_alsa.h

Issue 6591095: Mute ALSA audio completely (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser/chromeos
Patch Set: Created 9 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: chrome/browser/chromeos/audio_mixer_alsa.h
diff --git a/chrome/browser/chromeos/audio_mixer_alsa.h b/chrome/browser/chromeos/audio_mixer_alsa.h
index eeb5b26b104f3cb46a0af154c06445350233309b..69c05e02e039b43f9822f020a956d9c681ded833 100644
--- a/chrome/browser/chromeos/audio_mixer_alsa.h
+++ b/chrome/browser/chromeos/audio_mixer_alsa.h
@@ -81,6 +81,10 @@ class AudioMixerAlsa : public AudioMixer {
bool GetElementMuted_Locked(_snd_mixer_elem* elem) const;
void SetElementMuted_Locked(_snd_mixer_elem* elem, bool mute);
+ // Verify PCM can be opened, which also instantiates the PCM mixer element
+ // which is needed for finer volume control and for muting by setting to zero.
+ void PingPCM();
Daniel Erat 2011/03/02 17:45:07 worthwhile to return a bool here?
davejcool 2011/03/03 20:05:02 I thought about returning bool here as well, but A
+
// Volume range limits are computed once during InitializeAlsaMixer.
double min_volume_;
double max_volume_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/audio_mixer_alsa.cc » ('j') | chrome/browser/chromeos/audio_mixer_alsa.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698