Menu

Any one here using Jack Linux for Jamulus ?

Gronaz
2020-03-26
2020-04-02
  • Gronaz

    Gronaz - 2020-03-26

    Hi
    I have Jamulus over Jack(d) running OK with a UCA202 but I miss to be able to use the microphone in my Ubuntu 16.04 laptop. Anyone knows how to use it with Jackmulus please ? I asked @ QJackCtl but answers are spartan.

     
  • Laurent Schwartz

    You have to add a sound card to the jack setup.

    Video can help ? https://www.youtube.com/watch?v=cgVYDM8AXWk

     

    Last edit: Laurent Schwartz 2020-03-26
  • Gronaz

    Gronaz - 2020-04-02

    Thank you Laurent, your link gave me one solution
    The thing that prevented me to go further was I got "Device busy..." when I ran alsa_in. And was the result of Ubuntu's PulseAudio locking the device for it's own usage and I didn't knew how to kill it (it was auto restarted). The man Rui who develops QJackCtl gave me a hint :
    I had to uninstall pulseaudio-module-jack and I had to create the file ~/.config/pulse/client.conf and put inside this:
    autospawn=no
    to prevent PulseAudio to restart on it's own. Then with pulseaudio --kill I can stop it
    and after that I can have the MoBo audio chip input in QjackCtl and can route (connect) it to Jamulus input: I added this in my ~/jamulus/jamstart.sh that I reference in the Jack GUI's PostStart field

    1
    2
    3
    4
    5
    #!/bin/bash
    jamulus -c MyServer:Port
    card=`cat /proc/asound/cards|grep "\- HDA Intel PCH"|cut -d" " -f2`
    alsa_in -j Micro -d hw:$card -q 1  2>&1 1> /dev/null &
    exit 0
    

    Same in jamend.sh (killall jalumus &; killall alsa_in &; exit 0) in PreStop field
    Now this works but it seems the microphone volume has no more control slider once I killed pulseaudio and seems to keep Volume level/Mute status from when pulse was running... this remains a problem because the internal microphone has no swith as a real external one.
    Later I learned I could have use something like alsa_in -j Micro -d dsnoop:$card instead of hw:$card , maybe I could have keep pulse running beside Jack but pulse-jack-sink/source clients never worked for me.
    In the end I have to pulseaudio --daemonize when I finish with Ja[ckm]ulus. Even I could have use a thing called snd-aloop (with dsnoop for capture) but I didn't understand.
    Is one of these 3 solutions the best recommended for use with Jamulus ? I mean I don't really care with the latency of the microphone (just to speak with friends, not sing) as long as the device that makes it available doesn't disturb jamulus/jack main job with the USB card.
    Also when the alsa_in is connected to Jamulus there is a strong hissing in the headphones.
    And I still have problems because I'm not good at scripting, e.g. I don't know if I can put the pulseaudio kill/start commands directy in Prestart/PostStop fields in the Jack's GUI or if I need to have them in shell scripts.
    Bye bye and thank you again.