Re: [Jack-Devel] [PATCH] print latency

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [Jack-Devel] [PATCH] print latency

Pieter Palmers
I will take the liberty to commit this without further review.

Pieter

Nedko Arnaudov wrote:

> tiny patch to print latency (borrowed from ardour)
>
>
>
> ------------------------------------------------------------------------
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Jack-Devel mailing list
> [hidden email]
> http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

2 Jacks, 2 Soundcards

Edson Pereira

Hello!

I would like to ask for the advice about a configuration I am trying to
get with my current setup.

I have an application that requires two stereo inputs and two stereo
outputs. Some soundcards have such capabilities, but to keep thing
simple, I would like to use a USB sound interface and the built in sound
interface in my laptop. Here is where the simple things start to become
complex. :-(

I would like to configure jackd so that it can use one stereo input
(capture) from one soundcard and one stereo output (playback) on the
other soundcard. This works with just one instance of jackd, but if I
try with two instances, jackd complains the the devices are already in
use. This is the commands I have tried.

jackd --name sdr-rx -d alsa -Chw:1 -Phw:0 &
jackd --name sdr-tx -d alsa -Chw:0 -Phw:1 &

The first jackd runs, the second fails.

Does anyone know if such configuration is possible?

Ideally I would like to run just one jackd and create a virtual soundcard in alsa, but this doesn't work. I have followed some of the recipes on the net and all have failed. The reason seems to be known a bug in alsa. The virtual soundcard is created and jackd runs, but there are large amounts of buffer overruns.

Any help or pointers would be much appreciated.

Regards,

-- Edson



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: 2 Jacks, 2 Soundcards

lars.luthman (Bugzilla)
On Wed, 2007-11-21 at 20:30 +0900, Edson Pereira wrote:

> Hello!
>
> I would like to ask for the advice about a configuration I am trying to
> get with my current setup.
>
> I have an application that requires two stereo inputs and two stereo
> outputs. Some soundcards have such capabilities, but to keep thing
> simple, I would like to use a USB sound interface and the built in sound
> interface in my laptop. Here is where the simple things start to become
> complex. :-(
>
> I would like to configure jackd so that it can use one stereo input
> (capture) from one soundcard and one stereo output (playback) on the
> other soundcard. This works with just one instance of jackd, but if I
> try with two instances, jackd complains the the devices are already in
> use. This is the commands I have tried.
>
> jackd --name sdr-rx -d alsa -Chw:1 -Phw:0 &
> jackd --name sdr-tx -d alsa -Chw:0 -Phw:1 &
>
> The first jackd runs, the second fails.
>
> Does anyone know if such configuration is possible?
>
> Ideally I would like to run just one jackd and create a virtual
> soundcard in alsa, but this doesn't work. I have followed some of the
> recipes on the net and all have failed. The reason seems to be known a
> bug in alsa. The virtual soundcard is created and jackd runs, but
> there are large amounts of buffer overruns.
Please don't start new threads by replying to old messages, it screws up
the thread structure in many email clients.

If you want to use JACK with two separate soundcards that are not
running on the same clock (which I assume your USB interface and your
builtin card are not) you need to resample one of them. Try using
alsa_in or alsa_out from the netjack package, depending on whether you
care more about the correctness of the output or the input.

By the way, any chance of getting these tools into the standard JACK
package? They are obviously useful for a lot more than just monitoring
network JACK servers.


--ll

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: 2 Jacks, 2 Soundcards

Daniel James-2
Hi Edson, hi Lars,

>> I would like to configure jackd so that it can use one stereo input
>> (capture) from one soundcard and one stereo output (playback) on the
>> other soundcard. This works with just one instance of jackd, but if I
>> try with two instances, jackd complains the the devices are already in
>> use.

There's a small patch here which should make it possible:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=450806

I posted earlier about it, as I was curious to know the opinion of the
JACK devs on the patch.

>> Ideally I would like to run just one jackd and create a virtual
>> soundcard in alsa, but this doesn't work. I have followed some of the
>> recipes on the net and all have failed. The reason seems to be known a
>> bug in alsa. The virtual soundcard is created and jackd runs, but
>> there are large amounts of buffer overruns.

Are you using pcm_multi with a realtime kernel, Edson?

> If you want to use JACK with two separate soundcards that are not
> running on the same clock (which I assume your USB interface and your
> builtin card are not) you need to resample one of them.

I think that depends on the application. For example, if you require a
cue mix for a DJ then a small amount of clock drift over a couple of
hours may be acceptable, as the two outputs (main outs and cue outs) are
not mixed back together. PulseAudio may be a better solution for
combining consumer cards though, as it is designed for this use case.

Cheers!

Daniel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: 2 Jacks, 2 Soundcards

Paul Davis
In reply to this post by lars.luthman (Bugzilla)
On Wed, 2007-11-21 at 12:40 +0100, Lars Luthman wrote:

>
> If you want to use JACK with two separate soundcards that are not
> running on the same clock (which I assume your USB interface and your
> builtin card are not) you need to resample one of them. Try using
> alsa_in or alsa_out from the netjack package, depending on whether you
> care more about the correctness of the output or the input.
>
> By the way, any chance of getting these tools into the standard JACK
> package? They are obviously useful for a lot more than just monitoring
> network JACK servers.

yes, they should be added to example-clients (which increasingly
contains actually useful tools rather than just examples).

netjack needs to be added too.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel