A way to mute sound card output in JACK?

What other apps and distros do you use to round out your studio?

Moderators: MattKingUSA, khz

Post Reply
ThatJackElliott
Established Member
Posts: 57
Joined: Thu Jul 27, 2023 4:06 pm
Been thanked: 3 times

A way to mute sound card output in JACK?

Post by ThatJackElliott »

Hi, I am running Ubuntu Studio 22.04. Pulseaudio is disabled, my input and output device is a USB audio interface, a Presonus Studio 24c.

I need a way to briefly mute the playback card, from within Jack or something, and on a set schedule. Alsamixer shows that this card has no controls so I can't do something simple like have cron issue an ALSA command to mute/unmute the card.

Maybe there is something clever that could be done from within Jack, but I don't see it offhand. Does anyone know of a way to do this? Thank you!

-- Jack Elliott
They'll never take me alive

User avatar
Impostor
Established Member
Posts: 1392
Joined: Wed Aug 17, 2022 1:55 pm
Has thanked: 148 times
Been thanked: 366 times

Re: A way to mute sound card output in JACK?

Post by Impostor »

ThatJackElliott wrote: Thu Sep 21, 2023 5:38 pm

Hi, I am running Ubuntu Studio 22.04. Pulseaudio is disabled, my input and output device is a USB audio interface, a Presonus Studio 24c.

I need a way to briefly mute the playback card, from within Jack or something, and on a set schedule. Alsamixer shows that this card has no controls so I can't do something simple like have cron issue an ALSA command to mute/unmute the card.

Maybe there is something clever that could be done from within Jack, but I don't see it offhand. Does anyone know of a way to do this? Thank you!

Maybe create two different qjackctl patchbays, one with severed connections to the soundcard, and write a script for on the fly switching between them?

qjackctl --active-patchbay=/path/to/patchbay-profile.xml

Or use jack-mixer which also seems to have some cli-control for muting channels with jack_mixer_cc.

ThatJackElliott
Established Member
Posts: 57
Joined: Thu Jul 27, 2023 4:06 pm
Been thanked: 3 times

Re: A way to mute sound card output in JACK?

Post by ThatJackElliott »

Thanks for the ideas!

I'm not running QjackCtl, but rather jackd right off the command line. Loading jack patchbay snapshots with aj-snapshot. Maybe there is a way I can load a snapshot that doesn't send audio to the output card, then reload the normal snapshot. That could be done by cron, the question is whether jackd would enforce the changes.

I clearly need to set up a development PC for these things, the running machine is now part of our radio station's air chain and I don't need to bork a live show by dinking around with stuff.

The jack-mixer thing, which looks to use jack-mixer-cli which looks to be a way to send mysterious (to me) MIDI Control Change messages looks complicated. Not seeing a whole lot examples on the 'net.

-- Jack Elliott
They'll never take me alive

oddy.o.lynx
Established Member
Posts: 115
Joined: Sat Jun 30, 2018 2:54 am
Has thanked: 22 times
Been thanked: 22 times

Re: A way to mute sound card output in JACK?

Post by oddy.o.lynx »

maybe non-mixer or if you have a build environment jack_mixer

Post Reply