You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since in device config the .playback.channels is ignored for jack, then I suggest if it is default 0 to use the number of channels in the default device.
If .playback.channels is non-zero, then in ma_device_init__jack() simply create as many channels with (ma_jack_port_register_proc)() instead of basing it off the default device specs.
Autoconnect
in the context config add a .jack.autoconnect setting
in ma_device_start__jack() don't do calls to (ma_jack_connect_proc)() if .jack.autoconnect is false
The text was updated successfully, but these errors were encountered:
Thanks. I don't have a whole lot of experience with jack, but everything you mentioned here makes sense. I'm actually surprised it's not already doing the channel count thing. Just on the autoconnect thing, if jack.autoconnect is false, I wouldn't do any jack_connect() at all? Does that not need to be called at some point in order for audio to actually work?
Current behavior:
My default device has 8 channels. If I request 2 channels it creates a jack device with 8 outputs and auto-connect them all.
Desired behavior:
Details
With this config
The result is:
![image](https://private-user-images.githubusercontent.com/45611618/333345411-41027ed8-9baa-4717-82a4-8e34a848614c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwNDM0ODcsIm5iZiI6MTcyNDA0MzE4NywicGF0aCI6Ii80NTYxMTYxOC8zMzMzNDU0MTEtNDEwMjdlZDgtOWJhYS00NzE3LTgyYTQtOGUzNGE4NDg2MTRjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE5VDA0NTMwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI0YzgwODkxMWQ0MTE2YzJkODU1ZDM3ZmExZTAyM2UwYTQ5MDY0ZDY5M2Q3M2U2YTljMmRmMmZhZDMzYmYwOTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.WJC4_DfJxYTUlBuIXbg5lMz_9cuIVHxJS4NycMzg3Bw)
Proposed solution
Number of channels
.playback.channels
is ignored for jack, then I suggest if it is default 0 to use the number of channels in the default device..playback.channels
is non-zero, then inma_device_init__jack()
simply create as many channels with(ma_jack_port_register_proc)()
instead of basing it off the default device specs.Autoconnect
.jack.autoconnect
settingma_device_start__jack()
don't do calls to(ma_jack_connect_proc)()
if.jack.autoconnect
is falseThe text was updated successfully, but these errors were encountered: