Re: [Jack-Devel] incorrect port message

PrevNext  Index
DateWed, 29 Aug 2012 09:36:26 +0200
From Stéphane Letz <[hidden] at grame dot fr>
ToPatrick Shirkey <[hidden] at boosthardware dot com>
Cc[hidden] at lists dot jackaudio dot org
In-Reply-ToPatrick Shirkey Re: [Jack-Devel] incorrect port message
OK..... ((-;

It means that jack2 parameters checking (the most it is possible...) makes sense...

Stéphane 


Le 29 août 2012 à 09:31, Patrick Shirkey a écrit :

> 
> On Wed, August 29, 2012 8:58 am, Stéphane Letz wrote:
>> Can you possibly try latest git 1.9.9 version?
>> 
> 
> Ok, But the issue was me not reading my code properly. I was passing a
> char instead of a jack_port_t
> 
> So the correct fix is below.
> 
> /* create menu items for each input port */
>    for (i = 0; inports[i]; ++i) {
> 	    get_port(jack_port_by_name(client,inports[i]));
>    }
> 
> 
> Sorry for the noise...
> 
> 
>> Stéphane
>> 
>> Le 29 août 2012 à 08:51, Patrick Shirkey a écrit :
>> 
>>> 
>>> On Wed, August 29, 2012 8:29 am, Stéphane Letz wrote:
>>>> Which version of JACK?
>>>> 
>>> 
>>> Sorry, forgot that part.
>>> 
>>> JACK 1.9.8
>>> 
>>> I cal it like so:
>>> 
>>>   inports = jack_get_ports(client, NULL, NULL, JackPortIsInput);
>>> 
>>>   /* create menu items for each input port */
>>>   for (i = 0; inports[i]; ++i) {
>>> 	    get_port(inports[i]);
>>>   }
>>> 
>>> 
>>>> Stéphane
>>>> 
>>>> Le 29 août 2012 à 08:10, Patrick Shirkey a écrit :
>>>> 
>>>>> Hi,
>>>>> 
>>>>> Can anyone tell me why I get this error from jack?
>>>>> 
>>>>> code:
>>>>> 
>>>>> static void get_port(jack_port_t *port)
>>>>> {
>>>>>  printf("port = %s, id=%i\n", port,  jack_port_by_id(client, port));
>>>>>  port_name = jack_port_name(port);
>>>>> }
>>>>> 
>>>>> output:
>>>>> 
>>>>> port = jackEQ:e.fx2_return-out-R, id=1810997664
>>>>> jack_port_name called with an incorrect port 1810997664
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> Patrick Shirkey
>>>>> Boost Hardware Ltd
>>>>> 
>>>>> Jack-Devel mailing list
>>>>> [hidden]
>>>>> http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
>>>> 
>>>> 
>>> 
>>> 
>>> --
>>> Patrick Shirkey
>>> Boost Hardware Ltd
>>> 
>>> Jack-Devel mailing list
>>> [hidden]
>>> http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
>> 
>> 
> 
> 
> --
> Patrick Shirkey
> Boost Hardware Ltd
> 
> Jack-Devel mailing list
> [hidden]
> http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
PrevNext  Index

1346225812.12586_0.ltw:2,a <BFC4262D-ECED-4FF0-BB00-4AEE068CECA6 at grame dot fr>