jpcima / ADLplug

FM Chip Synthesizer — OPL & OPN — VST/LV2/Standalone

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problems with JACK

TheTrustedComputer opened this issue · comments

Hello, I am a heavy user of both the ADLplug and OPNplug programs on Windows. Recently, I decided to give it a try on Linux Mint 20--unsuccessfully.

After installing from the deb files, an error message pops up reading "Could not create a new audio client. Please start the JACK server and try again." I did not have JACK beforehand, so I installed it, (re)started the server, and tried again as the message told. However, that did not solve my problem. Logs from qjackctl do show the server received requests from the two programs, but the same error occurs before any further execution proceeds.

I honestly do not know much about JACK itself. Are there any steps I missed to get these to work properly on my system? If so, please enlighten me like I am a Linux newbie.

As I could not resolve the previous issue after many attempts, I went on to build without using the JACK flag (-DADLplug_Jack=OFF). Unfortunately, the build fails with a compiler error stating "cannot bind packed field", which points to a JUCE issue. This error has been reported by other users building with JUCE as far as I know, and my GCC version is 9.3.0.

Hello @TheTrustedComputer

This error indicates that connecting to Jack was impossible, a failure at the most basic step.
Usually it's a result of Jack not being started.

I honestly do not know much about JACK itself. Are there any steps I missed to get these to work properly on my system? If so, please enlighten me like I am a Linux newbie.

It needs to install the jack software, and some graphical software that acts like a control panel (personnally I have Qjackctl).
Then it has some additional setup to do at system level for enabling real-time.

Usually musician will pick a preconfigured Linux distribution and not deal with this (kxstudio, librazik, ubuntu studio..), but you can follow some steps to make it work.

There is a document that explains system-level setup.
https://jackaudio.org/faq/linux_rt_config.html
(for short, you want to adding your user account in the Unix group "audio", if not already, and assign this group real-time processing privileges)

After a fresh boot, you can change a few things in the Qjackctl settings panel, press its "start" button and you'll be good to go.
In settings, some things you want to change probably are "buffer size/sample rate" for the latency control, and "priority" in the advanced tab set to some high value (such as 90).

I hope this helps. You can request advice in freenode IRC #lau if you have trouble (linux-audio-users)

I have followed the steps provided in the attached link, and it helped to fix my issue. Thanks!