Patch for port naming, Re: [linux-audio-user] Any instructions about for running a Win VSTi under vstserver

James Stone stone1 at btinternet.com
Fri May 28 17:53:22 EDT 2004


On Fri, May 28, 2004 at 10:07:21PM +0200, Robert Jonsson wrote:
> Hi, 
> 
> I finally got it working by upgrading my Wine install. And it is working quite 
> nicely at that, tried a bunch of synths fro kvr-vst that work pretty good.
> 
> But this mail isn't about that.
> 
> > >
> > > The problem is that seq24 will not start with vsti running.
> > >
> > > Another problem is in muse, if I have two vsti s running they are only
> > > selectable as one instrument...
> 
> This happens since because vsti always exported them with the same port name, 
> which MusE doesn't like. 
> 
> This vsti patch makes vsti add the client_name to the port name (it can be 
> argued if the Input/Output prefix needs to be there but I guess some hosts 
> like it).
> 
> --- oldjc.c     2004-05-28 21:53:00.000000000 +0200
> +++ jackclient.c        2004-05-28 21:55:43.000000000 +0200
> @@ -66,7 +66,14 @@
> 
>    snd_seq_set_client_name (seq, client_name);
> 
> -  err = snd_seq_create_simple_port (seq, isinput==true?"Input":"Output",
> +
> +  char portName[100];
> +  if (isinput)
> +       sprintf(portName,"Input/%s", client_name);
> +  else
> +       sprintf(portName,"Output/%s", client_name);
> +

Nice work.. will have to try this.

James



More information about the Linux-audio-user mailing list