Eval JACK trouble

View: New views
7 Messages — Rating Filter:   Alert me  

Eval JACK trouble

by Julien Claassen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!
   I just downloaded jack from svn and I get the following problem:
mplayer *.wav (all is well)
jack_lsp -c shows mplayers' ports being connected to system_playback_* ports.
linuxsampler
(load some instrument and setup audio engine channels)
jack_lsp shows:
LinuxSampler:0
LinuxSampler:1
jack_connect LinuxSampler:0 system:playback_1
engine sample rate: 48000
cannot connect ports
   Jack server says:
destination port in attempted connection of system:playback_1 and
LinuxSampler:0
  is not an input port

   What is going on here. Jack says it's Version 0.112.0.
   Can anybody enlighten me/help me here?
   Kindest regards
         Julien

--------
Music was my first love and it will be my last (John Miles)

======== FIND MY WEB-PROJECT AT: ========
http://ltsb.sourceforge.net
the Linux TextBased Studio guide
======= AND MY PERSONAL PAGES AT: =======
http://www.juliencoder.de
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@...
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user

Re: Eval JACK trouble

by Hermann Meyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

same here, I found the last working jack_connect tool in revision 2284 (
0-111-5). This one work also with jackd 0.112.0. The related changes are :

-- jack-11.5/tools/connect.c 2008-05-17 17:50:04.000000000 +0200
+++ jack/tools/connect.c 2008-06-06 16:19:55.000000000 +0200
@@ -78,12 +130,12 @@
 
  /* find the two ports */
 
- if ((input_port = jack_port_by_name(client, argv[1])) == 0) {
- fprintf (stderr, "ERROR %s not a valid port\n", argv[1]);
+ if ((input_port = jack_port_by_name(client, argv[argc-1])) == 0) {
+ fprintf (stderr, "ERROR %s not a valid port\n", argv[argc-1]);
  return 1;
  }
- if ((output_port = jack_port_by_name(client, argv[2])) == 0) {
- fprintf (stderr, "ERROR %s not a valid port\n", argv[2]);
+ if ((output_port = jack_port_by_name(client, argv[argc-2])) == 0) {
+ fprintf (stderr, "ERROR %s not a valid port\n", argv[argc-2]);
  return 1;
  }
I change this lines back to version  0-111-5 and jack_connect work. BUT THIS
IS NO SOLUTION, BECAUSE JACK CRASHED SOMETIMES WITH THIS VERSION OF
jack_connect.

hope it bring's a little light in this.
                                                             hermann


Am Montag, 14. Juli 2008 16:10:40 schrieb Julien Claassen:

> Hello!
>    I just downloaded jack from svn and I get the following problem:
> mplayer *.wav (all is well)
> jack_lsp -c shows mplayers' ports being connected to system_playback_*
> ports. linuxsampler
> (load some instrument and setup audio engine channels)
> jack_lsp shows:
> LinuxSampler:0
> LinuxSampler:1
> jack_connect LinuxSampler:0 system:playback_1
> engine sample rate: 48000
> cannot connect ports
>    Jack server says:
> destination port in attempted connection of system:playback_1 and
> LinuxSampler:0
>   is not an input port
>
>    What is going on here. Jack says it's Version 0.112.0.
>    Can anybody enlighten me/help me here?
>    Kindest regards
>          Julien
>
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@...
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user

Re: Eval JACK trouble

by Julien Claassen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Hermann!
   Thanks for the answer. I just wondered about the logic of it all. It goes
like this:
first check first argument or one before last
   (which is OK for an input_port)
Then check second argument or two before last
   (Why two before last, should it be last, so the possible succession is:
jack_connect in_port out_port
or:
jack_connect [options] in_port out_port
   But that way the second form would be:
jack_connect [options] out_port in_port [one other option]
   I just wonder...
   Btw.: I think this is not good at all, at least when I see it as it is
there. Because:
if (first two argv[]s no options)
   if in_port in argv[1]
   if out_port in argv[2]
else // first one is an option
   if in_port in argv[argc-1]
   if out_port in argv[argc]
// end else
   Kindest regards
         Julien

--------
Music was my first love and it will be my last (John Miles)

======== FIND MY WEB-PROJECT AT: ========
http://ltsb.sourceforge.net
the Linux TextBased Studio guide
======= AND MY PERSONAL PAGES AT: =======
http://www.juliencoder.de
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@...
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user

Re: Evil JACK trouble (FIXED, got a patch!)

by Julien Claassen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everyone!
   I fixed the connect.c from jack 0.112.0. It was mainly some confusing inputs
with outputs and forgetting a return statement.
   Whom to send the file now?
   Kindest regards
         Julien

--------
Music was my first love and it will be my last (John Miles)

======== FIND MY WEB-PROJECT AT: ========
http://ltsb.sourceforge.net
the Linux TextBased Studio guide
======= AND MY PERSONAL PAGES AT: =======
http://www.juliencoder.de
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@...
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user

Re: Evil JACK trouble (FIXED, got a patch!)

by Hermann Meyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Julien

send it to me !! please
and the jack-devel list will be a good place to.
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
or
http://www.nabble.com/Jack-Audio-f15500.html

regards     hermann

Am Dienstag, 15. Juli 2008 15:45:33 schrieb Julien Claassen:
> Hi everyone!
>    I fixed the connect.c from jack 0.112.0. It was mainly some confusing
> inputs with outputs and forgetting a return statement.
>    Whom to send the file now?
>    Kindest regards
>          Julien
>


_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@...
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user

Re: Evil JACK trouble (FIXED, got a patch!)

by Hermann Meyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Julien

Thanks for submit ! It works for me.
Paul Davis is a member of this list, so he will read it soner or later. I
remember that I read a Post from him at jack-devel where he ask for testing
to bring out a new release. So it will be good to fix jack_connect in svn.
I diff your version against the fresh svn outcheck :

-- jack/tools/connect.c 2008-06-06 16:19:55.000000000 +0200
+++ jack/tools/connect.c 2008-07-15 17:33:02.000000000 +0200
@@ -111,7 +111,10 @@
  return 1;
  }
 
- if (argc < 3) show_usage(my_name);
+ if (argc < 3) {
+ show_usage(my_name);
+ return 1;
+ }
 
  /* try to become a client of the JACK server */
 
@@ -130,11 +133,11 @@
 
  /* find the two ports */
 
- if ((input_port = jack_port_by_name(client, argv[argc-1])) == 0) {
+ if ((input_port = jack_port_by_name(client, argv[argc-2])) == 0) {
  fprintf (stderr, "ERROR %s not a valid port\n", argv[argc-1]);
  return 1;
- }
- if ((output_port = jack_port_by_name(client, argv[argc-2])) == 0) {
+ }
+ if ((output_port = jack_port_by_name(client, argv[argc-1])) == 0) {
  fprintf (stderr, "ERROR %s not a valid port\n", argv[argc-2]);
  return 1;
  }



regards   (Danke Julien)  hermann

Am Dienstag, 15. Juli 2008 16:03:41 schrieb Hermann Meyer:

> Hi Julien
>
> send it to me !! please
> and the jack-devel list will be a good place to.
> http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
> or
> http://www.nabble.com/Jack-Audio-f15500.html
>
> regards     hermann
>
> Am Dienstag, 15. Juli 2008 15:45:33 schrieb Julien Claassen:
> > Hi everyone!
> >    I fixed the connect.c from jack 0.112.0. It was mainly some confusing
> > inputs with outputs and forgetting a return statement.
> >    Whom to send the file now?
> >    Kindest regards
> >          Julien
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@...
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user

Re: Evil JACK trouble (FIXED, got a patch!)

by Hermann Meyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Julien

Today I make a fresh outcheck from jack svn(0.112.1), I found the jack_connect
tool working again without a change in the source, but it have turn the
ports. jack_connect work now like that
jack_connect system:playback_1 system:capture_3
for example, that is contra to the bash completion wich will indicate a
inputport at first argument.

regards   hermann

Am Dienstag, 15. Juli 2008 15:45:33 schrieb Julien Claassen:
> Hi everyone!
>    I fixed the connect.c from jack 0.112.0. It was mainly some confusing
> inputs with outputs and forgetting a return statement.
>    Whom to send the file now?
>    Kindest regards
>          Julien



_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@...
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
LightInTheBox - Buy quality products at wholesale price