-
Notifications
You must be signed in to change notification settings - Fork 80
cadence: Add option to set pulseaudio channels manually #62
Comments
I guess I can add such option below the "playback only" checkbox. But I wonder, should we force 2 channels by default? |
An option to set the number of channels on the pulseaudio bridge would be greatly appreciated! For default behavior, either enforcing 2 channels or letting module-jack-(sink|source) default on their own (like they're doing now) would be fine. |
Tried hard to remember, what problem was in 2013.... ) p.s. May be also auto-detection mode, to set channels number same, as in "system" jack object. |
I use the NI Komplete Audio 6 with 6 outputs: 2 pairs of analog channels, and SPDIF. When pulseaudio is started from cadence, it sees jack presenting a generic 6-port interface and loads a 5.1 surround configuration. This isn't what I want; I only have a stereo pair of monitors/headphones on the main analog out from the sound card. The problem arises when pulseaudio tries to be clever and remix everything to 5.1, including a crossover to send LF to the subwoofer channel. My current solution is to disable all remixing by adding the following to
This works as long as all pulseaudio clients are stereo only, but if I happen to stumble upon any surround content it won't be downmixed to 2 channels. The better solution would be to explicitly limit the pulseaudio-jack sink to any given number of channels, regardless of what the audio interface happens to support. This should be as simple as adding a switch somewhere in the command or config involved in loading pulseaudio and it's modules. Yeah, qjackctl is a completely different story, so not surprising that you're not experiencing these issues. I guess both solutions have their pros and cons. |
+1 to this I have an edirol ua101 and pulseaudio detect it as a multi channel audio device |
Another +1 here, I've just connected my laptop to a Focusrite 6i6 v2, which presents as 6 channels, so Pulseaudio is presenting as 5.1 and auto connecting all channels. as shown below: but i'd really just like pulse to think it's a 2 channel system. |
I found I could add channels=2 to the defaults to work around this, but also extended it to create multiple sinks/sources by amending cadence-pulse2jack. I've created #234 to talk about it. |
There was question, on irc, about how to set pulse channels to 2, while default was 8 (suround 7.1) — same as channels number in jack master output. This was necessary for some applications (chrome).
From #kxstudio channel:
Finally solution was:
I failed to reproduce same sequence, because after pulseaudio killing pactl did not start new instance and thus failed to contact daemon. But it would be nice to just move line, loading "module-jack-sink" from play.pa script, shipped with cadence, to pulse-jack script, completing it with necessary argument.
Same option would be added for "module-load module-jack-source" line as well.
The text was updated successfully, but these errors were encountered: