Re: [LAD] Tutorial for programming with JACK

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <kallipygos@...>
Cc: <Linux-audio-dev@...>
Date: Wednesday, February 22, 2012 - 1:18 pm

--90e6ba6e86dc69ccba04b98d5cf6
Content-Type: text/plain; charset=ISO-8859-1

On Wed, Feb 22, 2012 at 9:56 AM, wrote:

> Hi experts

I wouldn't concider myself an "expert"... but hello never the less :)

> Why it is written in C++ , not C ?

Short answer: I'm ok at C++, and not good at pure C.
Long answer: Most large audio program projects are written in C++: its
easier to compartmentalize code, splitting functionality. IMO its better
suited to writing *applications*, while pure C is better for writing
libraries due to the fact that pretty much any language has bindings to
calling (pure) C functions.

> means "read" and "write" ?

Robin pretty much aced those questions, so I'll skip em.

> > Which leads me to my next question: are most JACK applications

Memory management & threading are the two big real-time things, using a VM
complicates this.
I don't advise using it, but C++ is already my weapon of choice so I'm not
biased at all ;)

That said, my first JACK client was using Python to copy I/O buffers using
the PyJack interface.
Xruns!! but it worked... :) For serious applications I would not concider
VM languages as a serious
option, but I'm sure there's people on list that would disagree. This has
been discussed before on list,
searching the archives will provide lots of information on the topic.

HTH, -Harry

--90e6ba6e86dc69ccba04b98d5cf6
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Wed, Feb 22, 2012 at 9:56 AM, <kallipygos@inbox.lv><=
/span> wrote:
Hi expertsI wouldn't concider myself an "expert&=
quot;... but hello never the less :)=A0
Why it is written in C++ , not C ?Short answer=
: I'm ok at C++, and not good at pure C.Long answer: Most large aud=
io program projects are written in C++: its easier to compartmentalize code=
, splitting functionality. IMO its better suited to writing *applications*,=
while pure C is better for writing libraries due to the fact that pretty m=
uch any language has bindings to calling (pure) C functions.
=A0means &=
quot;read" and "write" ?Robin pr=
etty much aced those questions, so I'll skip em.
=A0> Which leads me to my next question: are most JACK applications<=
div>
> written in C/C++? I understand that programming as close to the =

reasonable is that?
=A0Memory management & threading are=
the two big real-time things, using a VM complicates this.I don't =
advise using it, but C++ is already my weapon of choice so I'm not bias=
ed at all ;)
That said, my first JACK client was using Python to copy I/O buffers us=
ing the PyJack interface.Xruns!! but it worked... :) For serious applic=
ations I would not concider VM languages as a seriousoption, but I'=
m sure there's people on list that would disagree. This has been discus=
sed before on list,
searching the archives will provide lots of information on the topic.HTH, -Harry

--90e6ba6e86dc69ccba04b98d5cf6--

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] Tutorial for programming with JACK, Kris Calabio, (Thu Feb 16, 11:38 pm)
Re: [LAD] Tutorial for programming with JACK, Harry van Haaren, (Sat Feb 18, 2:45 pm)
Re: [LAD] Tutorial for programming with JACK, Kris Calabio, (Fri Feb 17, 2:17 pm)
Re: [LAD] Tutorial for programming with JACK, Robin Gareus, (Fri Feb 17, 3:13 pm)
Re: [LAD] Tutorial for programming with JACK, Neil C Smith, (Sat Feb 18, 11:26 am)
Re: [LAD] Tutorial for programming with JACK, Bill Gribble, (Fri Feb 17, 2:22 pm)
Re: [LAD] Tutorial for programming with JACK, Harry van Haaren, (Wed Feb 22, 1:18 pm)
Re: [LAD] Tutorial for programming with JACK, Joan Quintana, (Fri Feb 24, 10:12 am)
Re: [LAD] Tutorial for programming with JACK, Robin Gareus, (Fri Feb 24, 5:08 pm)
Re: [LAD] Tutorial for programming with JACK, Joan Quintana, (Mon Feb 27, 12:31 am)
Re: [LAD] Tutorial for programming with JACK, Emanuel Rumpf, (Thu Mar 8, 8:41 am)
Re: [LAD] Tutorial for programming with JACK, Paul Davis, (Thu Mar 8, 1:19 am)
Re: [LAD] Tutorial for programming with JACK, Harry van Haaren, (Fri Feb 24, 4:52 pm)
Re: [LAD] Tutorial for programming with JACK, Joan Quintana, (Fri Feb 24, 5:46 pm)
Re: [LAD] Tutorial for programming with JACK, Iain Duncan, (Sat Feb 25, 10:34 pm)
Re: [LAD] Tutorial for programming with JACK, Robin Gareus, (Fri Feb 24, 5:06 pm)
Re: [LAD] Tutorial for programming with JACK, Robin Gareus, (Wed Feb 22, 11:30 am)
Re: [LAD] Tutorial for programming with JACK, Patrick Shirkey, (Thu Feb 16, 11:49 pm)
Re: [LAD] Tutorial for programming with JACK, Kris Calabio, (Fri Feb 17, 12:00 am)
Re: [LAD] Tutorial for programming with JACK, Joel Roth, (Sat Feb 18, 11:06 pm)
Re: [LAD] Tutorial for programming with JACK, Patrick Shirkey, (Fri Feb 17, 12:10 am)