Page 1 of 1

JACK/ALSA how to connect Darkice?

Posted: Tue Aug 01, 2023 3:07 pm
by ThatJackElliott

This is not a question about Darkice - the Icecast source-client program, it's a more general question about how to make a connection to it in my JACK setup.

Darkice wants to get its audio input from a hardware device, such as a Capture card. The documentation states:

"Device Input. Here, you select which audio device DarkIce should get its input from. If you are using an OSS sound system, you should select one of the /dev/dsp devices. If you are using ALSA, you should select one of the hw devices. If you are using the JACK sound system, you should select one of the jack devices."

So here's a crude ASCII rendering of QjackCtl's Graph showing where I want to connect it to:

Code: Select all

Zita-MU1 mon_out_L/R -------------------> L/R Playback ports on my monitor Playback card
                                ^
                               HERE (input to Darkice) 

"HERE" isn't a hw: that I can connect to. But it's where I want to connect to.

This is where I would specify the connection in Darkice's config file:

Code: Select all

# this section describes the audio input that will be streamed
[input]
device          = /dev/dsp  # OSS DSP soundcard device for the audio input
sampleRate      = 22050     # sample rate in Hz. try 11025, 22050 or 44100
bitsPerSample   = 16        # bits per sample. try 16
channel         = 2         # channels. 1 = mono, 2 = stereo

For the device, one can specify an hw: hopefully as hw:CARD_NAME, not hw:x,y because Linux likes to shuffle x,y around.

I hope this makes sense!


Re: JACK/ALSA how to connect Darkice?

Posted: Tue Aug 01, 2023 4:04 pm
by erlkönig

iirc, you simply set

Code: Select all

device= jack

or was it

Code: Select all

device= jackd

?

and then it should appear in the connection graph of qjackctl.


Re: JACK/ALSA how to connect Darkice?

Posted: Tue Aug 01, 2023 4:46 pm
by ThatJackElliott

Oh, no -- that's far too simple. I'll give it a try! Thank you!


Re: JACK/ALSA how to connect Darkice?

Posted: Tue Aug 01, 2023 5:29 pm
by ThatJackElliott

I'll be hornswoggled -- use Device= jack and it works like a charm! Thank you!