swesterfeld / liquidsfz

SFZ Sampler
Mozilla Public License 2.0
87 stars 12 forks source link

No sound (Ubuntu 22.04 with or without JACK) #45

Open pimaga opened 5 months ago

pimaga commented 5 months ago

Hi,

First thanks a lot for this very useful project !

On Ubuntu 22.04, I've compiled liquidsfz without problem, but I don't manage to get sound...

Running liquidsfz piano.sfz without JACK server, I get this output:

jackdmp 1.9.20 Copyright 2001-2005 Paul Davis and others. Copyright 2004-2016 Grame. Copyright 2016-2021 Filipe Coelho. jackdmp comes with ABSOLUTELY NO WARRANTY This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details JACK server starting in non-realtime mode self-connect-mode is "Don't restrict self connect requests" audio_reservation_init Acquire audio card Audio1 creating alsa driver ... hw:DAC|hw:DAC|1024|2|44100|0|0|nomon|swmeter|-|32bit configuring for 44100Hz, period = 1024 frames (23.2 ms), buffer = 2 periods ALSA: final selected sample format for playback: 16bit little-endian ALSA: use 2 periods for playback port created: Midi-Through:midi/playback_1 port created: Midi-Through:midi/capture_1 Loading: 0.0 % Loading: 0.2 % ... Loading: 99.8 % Loading: 100.0 % Preloaded 641 samples, 118.2 MB.

and this error:

Cannot connect to server socket err = Connection refused Cannot connect to server request channel no message buffer overruns no message buffer overruns no message buffer overruns ALSA: Cannot open PCM device alsa_pcm for capture. Falling back to playback-only mode

And running liquidsfz piano.sfz with JACK server, I get this output:

Loading: 0.0 % Loading: 0.2 % ... Loading: 99.8 % Loading: 100.0 % Preloaded 641 samples, 118.2 MB.

and no error.

But in both cases, a command like "noteon 0 60 100" gives me no sound.

Have I missed something trivial ? Could it be linked to my sound configuration ?

Thanks a lot in advance for any help,

Best regards

acli commented 5 months ago

Just another user here. I don’t think there’s any ALSA support in liquidsfz at all; what you’re seeing in the “without JACK server” case is liquidsfz triggering JACK being auto-started.

Is “DAC” your normal sound card, or is it a second sound card? If it’s a second sound card try to plug headphones to that sound card and see if there’s audio.

pimaga commented 5 months ago

Thank you for your reply, acli.

DAC is a secondary sound card. But the result is the same when I disconnect it to force JACK to use the internal sound card.

I agree with you : it is no surprise that liquidsfz does not work when the JACK server has not been previously launched. The question is why can't I get sound in the second case, even though everything seems working (no output or error message)...

swesterfeld commented 5 months ago

Although liquidsfz connects JACK and creates two audio output ports and one midi input port, initially these are not connected to anything. You need to connect the audio output ports to the soundcard JACK ports using a patchbay like Carla or a graphical application like QjackCtl (or some other program that can connect JACK ports). You can automate the process for instance in QjackCtl.

pimaga commented 5 months ago

Thank you very much, that was the missing info :-) Everything works fine now !

GeoffreyPlitt commented 4 months ago

Is there a terminal program that can do the patchbay connections?

suedwestlicht commented 1 month ago

Is there a terminal program that can do the patchbay connections?

jack_connect