Re: [RDD] Using Jack + 2 soundcards

2018-09-27 Thread Lorne Tyndale
Hi,

If you want to get both cards working under Jack, you'll need to start
up Jack using one of your cards, and for the other use alsa_in and
alsa_out 

alsa_in and alsa_out will allow you to create in's and out's in Jack's
connection list for a second (or third, fourth, fifth, however many
sound cards you have) card.

But for it to work you'll need to make sure that nothing else has
grabbed that sound card.  Also alsa_in and alsa_out need to run as the
same user as Jackd.  

If you are running Rivendell and want to do all your in / out through
Jack for all your sound cards then it means you will need to remove all
your sound cards from rdalsaconfig.  Configure Rivendell to start up the
Jack server pointing to one of your sound cards.  Use the option to have
the Rivendell daemons start up the Jack alsa_in and alsa_out clients. 
Restart your daemons and and you'll need to build a macro to route your
audio the way you want it all routed.

For starters to figure out the command line options you'll need and such
I'd suggest playing around with Jackd, alsa_in, and alsa_out from the
command line.  Then you can start up qjackctl and see what's happening
in the connection window.

Another option that I did once on a 2 sound card machine - I left one
sound card as ALSA available to Rivendell and the other one I ran
through Jack.  I don't recall how but I was able to get Rivendell to see
2 audio cards in the "audio resources" section this way - one card the
ALSA card, the other was Jack.

For getting it all working on boot, if you can get Rivendell to start up
Jack and all the Jack clients you need, have a macro that runs to create
all your Jack connections (use the Startup Cart option) then that should
cover what you need.  The trick is figuring out the configuration you
need in the first place.

Lorne Tyndale


> 
> 
> Hi again. /me bothering. again
> I have Rivendell running on CentOS7 with two soundcards.
> Rivendell + Alsa *is working*. I can assign one card to main playlist
> and another to aux1 playlist (so I can get CUE)
> Audio Resources show two cards( Card 0: Intel, Card 1: USB)
> 
> BUT...
> 
> I also need to launch a stream using VLC. We take some online radios
> (mainly news). Problem is rivendell grabbing alsa devices so no other
> app can use sound cards.
> 
> I did:
> # systemctl stop rivendell
> # /usr/bin/jackd -R -dalsa -dhw:Intel -r44100 -p1024 -n2 &
> # systemctl start rivendell
> I open rdadmin and I see just 1 Audio Resource (Card 0: JACK)
> On audio ports I see 1 card (Jack) and the rest is UNKNOWN.
> 
> How can I get the two cards working with jack?
> Also, how can I get this working on boot?
> 
> Thanks!
> ___
> Rivendell-dev mailing list
> Rivendell-dev@lists.rivendellaudio.org
> http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Using Jack + 2 soundcards

2018-09-27 Thread Fred Gleason
On Sep 27, 2018, at 14:22, Diego  wrote:

> So from Aux I can CUE, and main list plays on main out.
> BUT, my list plays on both outputs alternate; I mean: song 1 y playing
> and show red square with a 1 (main sound card), next song will play
> but with a 2 (second sound card), third song will play on first card,
> etcetera.
> Why is jack playing in alternate sound card??

I suspect you have a typo in your ‘Main Playlist’ port assignments. Both should 
be set to the same card/port value.


> Also I have to run everything as root, otherwise jack won't play anything.
> How can I run rivendell and jack as rd user?

That’s an architectural wart in JACK. jackd(1) and the clients must all run as 
the same user. Rivendell’s caed(8) runs as ‘root’, hence everything else must 
as well.

Cheers!


|--|
| Frederick F. Gleason, Jr. |  Chief Developer |
|   |  Paravel Systems |
|--|
|  A room without books is like a body without a soul. |
| -- Cicero|
|--|___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Using Jack + 2 soundcards

2018-09-27 Thread Diego
Updating thread:
I found that running qjackctl as root:
> # systemctl stop rivendell
> # /usr/bin/jackd -R -dalsa -dhw:Intel -r44100 -p1024 -n2 &
> # alsa_out -dhw:1 -c 2 -r 44100 &
> # qjackctl &
I can add second card and plug to system output. then
> # systemctl start rivendell

I open rdadmin and I see just 1 Audio Resource (Card 0: JACK but 8 ports)
So I configured rdairplay this way:
Main Playlist1: Card0,  port 0
Main Playlist2: Card0, port 0
Aux Playlist1: Card0, port 1
Aux Playlist2:Card0, port 1

So from Aux I can CUE, and main list plays on main out.
BUT, my list plays on both outputs alternate; I mean: song 1 y playing
and show red square with a 1 (main sound card), next song will play
but with a 2 (second sound card), third song will play on first card,
etcetera.
Why is jack playing in alternate sound card??

rivendell_0:playout_0L  --> system:playback_1
rivendell_0:playout_0R --> system:playback_2
rivendell_0:playout_1L --> alsa_out:playback_1
rivendell_0:playout_1R --> alsa_out:playback_2

Also I have to run everything as root, otherwise jack won't play anything.
How can I run rivendell and jack as rd user?
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


Re: [RDD] Using Jack + 2 soundcards

2018-09-27 Thread Fred Gleason
On Sep 27, 2018, at 13:36, Diego  wrote:

> I also need to launch a stream using VLC. We take some online radios
> (mainly news). Problem is rivendell grabbing alsa devices so no other
> app can use sound cards.

From a root shell, do:

rdalsaconfig

And update the list of ALSA devices accordingly.


> How can I get the two cards working with jack?
> Also, how can I get this working on boot?

Not strictly a Rivendell issue. Googling it will bring up *lots* of hits. The 
general gist though, for most sound cards, is “don’t do it”.

Cheers!


|--|
| Frederick F. Gleason, Jr. |  Chief Developer |
|   |  Paravel Systems |
|--|
|  A room without books is like a body without a soul. |
| -- Cicero|
|--|___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev


[RDD] Using Jack + 2 soundcards

2018-09-27 Thread Diego
Hi again. /me bothering. again
I have Rivendell running on CentOS7 with two soundcards.
Rivendell + Alsa *is working*. I can assign one card to main playlist
and another to aux1 playlist (so I can get CUE)
Audio Resources show two cards( Card 0: Intel, Card 1: USB)

BUT...

I also need to launch a stream using VLC. We take some online radios
(mainly news). Problem is rivendell grabbing alsa devices so no other
app can use sound cards.

I did:
# systemctl stop rivendell
# /usr/bin/jackd -R -dalsa -dhw:Intel -r44100 -p1024 -n2 &
# systemctl start rivendell
I open rdadmin and I see just 1 Audio Resource (Card 0: JACK)
On audio ports I see 1 card (Jack) and the rest is UNKNOWN.

How can I get the two cards working with jack?
Also, how can I get this working on boot?

Thanks!
___
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev