1

Is there a way how to mute all sounds in browser only? I need it to be done from command line. I'm currently using alsa mixer for mute (command amixer set Master toggle), but I can't find any way how to mute browser and not the other apps.

  • 3
    As far as I know you can mute stream per application only via Pulseaudio. But I don't know how to do it via command line. – Yaroslav Mytkalyk Oct 15 '13 at 18:55
4

Doctoror Drive is correct, this can be done pretty simply with pulseaudio, but if you are using ALSA exclusively, it will be a much more difficult task.

With pulse, there are a variety of options. Both pacmd and pactl are capable of this, but it may seem overly complicated because of the significant number of options. Alternatively, you could use a community-contributed tool called ponymix (which is now in [community]) to very simply control both individual application streams and the system-wide server settings.

With pure ALSA, however, I am unsure if this is even possible.

  • 1
    it's not possible. – strugee Apr 20 '14 at 20:15
  • That's what I figured; I had never seen the ability to do so before. – HalosGhost Apr 20 '14 at 20:18
  • 1
    @HalosGhost +1 for ponymix: and welcome! – jasonwryan Apr 20 '14 at 20:21
  • Thanks jwr, I've been a longtime SE reader; figured it was about time I try to contribute something back. – HalosGhost Apr 20 '14 at 20:23
1

If you're not using pulseaudio you can create a softvol device in alsa:

pcm.aux {
    type softvol
    slave.pcm pcm.default

    control {
            name "AUX"
            card 0
    }
    hint.description "softvol für AUX"
}

Then configure your browser to use the "vdr" device. During the first use, a new mixer control will be created and appear e.g. in alsamixer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.