Lines Matching defs:mute
163 void AudioMixerAlsa::SetMute(bool mute) {
168 // Set volume to minimum on mute, since switching the element off does not
169 // always mute as it should.
172 // switching the element off can be guaranteed to mute it. Currently mute
177 if (old_value != mute) {
178 if (mute) {
186 SetElementMuted_Locked(elem_master_, mute);
187 prefs_->SetInteger(prefs::kAudioMute, mute ? kPrefMuteOn : kPrefMuteOff);
369 // If volume or mute are invalid, set them now to the current actual values.
372 bool mute = false;
374 mute = GetElementMuted_Locked(elem_master_);
376 mute = (pref_mute == kPrefMuteOn) ? true : false;
378 VLOG(1) << "Setting volume to " << pref_volume << " and mute to " << mute;
380 if (mute) {
387 SetElementMuted_Locked(elem_master_, mute);
393 int mute = prefs_->GetInteger(prefs::kAudioMute);
400 NewRunnableMethod(this, &AudioMixerAlsa::DoSetVolumeMute, vol, mute));
545 void AudioMixerAlsa::SetElementMuted_Locked(snd_mixer_elem_t* elem, bool mute) {
546 int enabled = mute ? 0 : 1;