Re: [Jack-Devel] incorrect port message

PrevNext  Index
DateWed, 29 Aug 2012 09:31:58 +0200
From Patrick Shirkey <[hidden] at boosthardware dot com>
To[hidden] at lists dot jackaudio dot org
In-Reply-ToStéphane Letz Re: [Jack-Devel] incorrect port message
Follow-UpStéphane Letz Re: [Jack-Devel] incorrect port message
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
PrevNext  Index

1346225525.12058_0.ltw:2,a <46606.175.39.40.230.1346225518.squirrel at boosthardware dot com>