On Wed, 2006-02-15 at 14:00 +0100, Tom wrote:
> I started to get familiar with jack, so I read the
simple_client example and
> the capture_client code. Even If the code is clear to
me, I still have some
> questions:
>
> Generally, when is the "process"-callback
called in the simple_client example?
> In case when there are nframes of data available from
the mic or when the
> soundcard is able to play nframes or both?
Since JACK only supports one single soundcard, those should
happen at
the same time.
> Or the other way round: when I want to have an
application, that records and
> plays audio independently (so different to the
simple_client example), I have
> to open two independent jack-client instances!?
If by "independently" you mean "from two
different audio interfaces",
you would actually even have to start two separate JACK
servers, and
then open two client instances in your program, one for each
server (and
handle all the nasty timing and resampling business
yourself).
This is with the standard JACK, maybe there are some tricks
you can do
with the network JACK drivers.
--
Lars Luthman
PGP key: h
ttp://www.student.nada.kth.se/~d00-llu/pgp_key.php
Fingerprint: FCA7 C790 19B9 322D EB7A E1B3 4371 4650 04C7
7E2E
|