Hi experts I followed your discussion about=
JACK API tutorial.Actually i am beginner_from_zero in JACK prog=
ramming. Long long time ago i writed small JACK =
client, but i gotta problems withx-runs and lost connections, an=
d i not unterstood why. Even if i read all this =
stuff, without tutorial and step_by_step examplesi can not progr=
amming stable JACK client.http://jackaudio.org/files/docs/html/g=
roup__ClientFunctions.html I found example =
https://github.com/harryhaaren/Linux-Audio-Programming-Documenta=
tion/blob/master/jackClient/jackClient.cppbut i have some beginn=
er questions about it. Why it is written in C++ =
, not C ? float* inputBuffer =3D (float*)j=
ack_port_get_buffer ( inputPort , nframes); float* outputBu=
ffer=3D (float*)jack_port_get_buffer ( outputPort, nframes);mean=
s "read" and "write" ? If so then why callback f=
uncprocess(jack_nframes_t nframes )have such st=
ructure ??INPUT_READOUTPUT_WRITEPROCESSING=
? float* inputBuffer =3D (float*)jack_por=
t_get_buffer ( inputPort , nframes); float* outputBuffer=3D=
(float*)jack_port_get_buffer ( outputPort, nframes); for =
( i =3D 0; i < (int) nframes; i++) { // copy data from =
input to output. Note this is not optimized for speed! =
60; outputBuffer[i] =3D inputBuffer[i]; }It mea=
ns that processed samples will go to output only @ next process() call ? Why not INPUT_READPROCE=
SSINGOUTPUT_WRITE ? How can i de=
tect (list) - all available ports:channels ?How to automatic con=
nect my client i/o ports to jackd ? jack_l=
sp -tsystem:capture_1 32 bit float mono audiosystem:c=
apture_2 32 bit float mono audiosystem:playback_1 32 bit float m=
ono audiosystem:playback_2 32 bit float mono audio=
60; What means - 32 bit float mono audio ?=
32 bit float - does JACK work with other sample formats ?mo=
no - is it possible operate with interleaved stereo stream ?audio - what else as audio ? What about stereo=
stream ?Must i create 2 ports ausL and ausR ? <=
/div> outputPort =3D jack_port_register ( client,=
0; &#=
160; "ausL", =
60; &=
#160; JACK_DEFAULT_AUDIO_TYPE, =
0; JackPortIsOutput,=
=
0 );=
0; outputPort =3D jack_port_register ( client, =
0; &#=
160; "ausR", =
60; &=
#160; JACK_DEFAULT_AUDIO_TYPE, =
=
0; JackPortIsOutput, &#=
160; =
0 );If so, then how to=
write data and sync both seperate(d) channels?With interleaved =
stream i do not care about sync between channels. Tnx in advance @ all.Alfs Kurmis <=
br /> > Which leads me to my next que=
stion: are most JACK applications > written in C/C++? I understa=
nd that programming as close to the > hardware as possible is impo=
rtant for performance, but what about > programming in a JVM langu=
age (I have Clojure in mind)? How > reasonable is that? ----
LINUX® is a registered trademark of Linus Torvalds in the USA and other countries.
Linuxaudio.org logo copyright Thorsten Wilms © 2006.
Hosting provided by the Virginia Tech Department of Music and DISIS.