Hi all,
I am working on some jack-utility externals, to make and query port connections from within pd. If the jack-folks decide on the transport API I will add controls for that too.
My questions: In jackified pd, what is run inside the jack process callback. My externals don't do any audio processing, and get their own jack-client id, so they can be run with the -noaudio flag. But can they be run in pd _with_ jack-audio, or do I need to make them multi threaded for that? They will give problems if run _inside_ the process callback.
regards
Gerard
I think you can make two jack connections from one application, so I think that there won't be problems, but to be sure you have to try.
Guenter
On Thu, 3 Jul 2003, vanDongen/Gilcher wrote:
Hi all,
I am working on some jack-utility externals, to make and query port connections from within pd. If the jack-folks decide on the transport API I will add controls for that too.
My questions: In jackified pd, what is run inside the jack process callback. My externals don't do any audio processing, and get their own jack-client id, so they can be run with the -noaudio flag. But can they be run in pd _with_ jack-audio, or do I need to make them multi threaded for that? They will give problems if run _inside_ the process callback.
regards
Gerard
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev
Two jack clients is not the problem. I guess I wasn't very clear in my question. The problem is that querying connections and ports should not happen inside a jack callback function. So I was wondering if a non-signal external is run inside the jack process-callback of pd. The problems I am seeing suggest that it is.
Gerard
On Friday 04 July 2003 12:44, guenter geiger wrote:
I think you can make two jack connections from one application, so I think that there won't be problems, but to be sure you have to try.
Guenter
On Thu, 3 Jul 2003, vanDongen/Gilcher wrote:
Hi all,
I am working on some jack-utility externals, to make and query port connections from within pd. If the jack-folks decide on the transport API I will add controls for that too.
My questions: In jackified pd, what is run inside the jack process callback. My externals don't do any audio processing, and get their own jack-client id, so they can be run with the -noaudio flag. But can they be run in pd _with_ jack-audio, or do I need to make them multi threaded for that? They will give problems if run _inside_ the process callback.
regards
Gerard
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev
On Sat, 5 Jul 2003, vanDongen/Gilcher wrote:
Two jack clients is not the problem. I guess I wasn't very clear in my question. The problem is that querying connections and ports should not happen inside a jack callback function. So I was wondering if a non-signal external is run inside the jack process-callback of pd. The problems I am seeing suggest that it is.
Hi,
Sorry but I think I still do not understand... What are the exact problems that you are seeing ?
Greetings,
Guenter
Gerard
On Friday 04 July 2003 12:44, guenter geiger wrote:
I think you can make two jack connections from one application, so I think that there won't be problems, but to be sure you have to try.
Guenter
On Thu, 3 Jul 2003, vanDongen/Gilcher wrote:
Hi all,
I am working on some jack-utility externals, to make and query port connections from within pd. If the jack-folks decide on the transport API I will add controls for that too.
My questions: In jackified pd, what is run inside the jack process callback. My externals don't do any audio processing, and get their own jack-client id, so they can be run with the -noaudio flag. But can they be run in pd _with_ jack-audio, or do I need to make them multi threaded for that? They will give problems if run _inside_ the process callback.
regards
Gerard
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev
On Monday 07 July 2003 22:29, guenter geiger wrote:
Hi,
Sorry but I think I still do not understand... What are the exact problems that you are seeing ?
Hi,
Mainly xruns and weird returns from jack_get_all_connections() and jack_get_ports().
In the jack doc it says about jack_get_all_connections:
1) You may not call this function from code that is executed in response to a JACK event. For example, you cannot use it in a GraphReordered handler.
But I think jack_get_ports is also not realtime safe. Basically all these kind of jack functions are not supposed to be called inside the process callback.
So the question is, is the entire pd-graph handled inside the jack process callback? It seems to.
I think I have 2 possible solutions to make my jack-utility externals work: 1)I can run them in an other pd with the -noaudio flag 2)I can try making them multithreaded. But I don't really know how to do this properly.
I think I will do 1) and make a beta release soon.
greetings
Gerard
On Tue, 8 Jul 2003, vanDongen/Gilcher wrote:
So the question is, is the entire pd-graph handled inside the jack process callback? It seems to.
mhm, actually it isn't, except in the version that stefan made. Which pd version have you looked at ?
Guenter
I think I have 2 possible solutions to make my jack-utility externals work: 1)I can run them in an other pd with the -noaudio flag 2)I can try making them multithreaded. But I don't really know how to do this properly.
I think I will do 1) and make a beta release soon.
greetings
Gerard
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev
All right,, so I must be doing something wrong :) I am using the devel branch So what part of the jack graph is handled in the process callback?
Gerard
On Tuesday 08 July 2003 19:13, guenter geiger wrote:
On Tue, 8 Jul 2003, vanDongen/Gilcher wrote:
So the question is, is the entire pd-graph handled inside the jack process callback? It seems to.
mhm, actually it isn't, except in the version that stefan made. Which pd version have you looked at ?
Guenter
On Tue, 8 Jul 2003, vanDongen/Gilcher wrote:
All right,, so I must be doing something wrong :) I am using the devel branch So what part of the jack graph is handled in the process callback?
You mean of the pd graph ? Nothing. You may take a look at the implementation in s_audio_jack.c
Guenter
Gerard
On Tuesday 08 July 2003 19:13, guenter geiger wrote:
On Tue, 8 Jul 2003, vanDongen/Gilcher wrote:
So the question is, is the entire pd-graph handled inside the jack process callback? It seems to.
mhm, actually it isn't, except in the version that stefan made. Which pd version have you looked at ?
Guenter
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev