List Info

Thread: recording from jack




recording from jack
user name
2006-02-15 13:00:43
Hi all,

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?

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!?

Thanks in advance - Tom


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep
through log files
for problems?  Stop!  Download the new AJAX search engine
that makes
searching your log files as easy as surfing the  web. 
DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Jackit-devel mailing list
Jackit-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jackit-dev
el
recording from jack
user name
2006-02-15 13:43:43
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
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )