Re: [Jack-Devel] API versioning
On Fri, Feb 11, 2011 at 01:16:55PM +0100, Valerio Pilo wrote:
> In data venerdì 11 febbraio 2011 12:52:47, hai scritto:
> > > Hi, now that the JackPortIsActive commit has been reverted, how do I know
> > > if a client is able to playback and/or capture?
> >
> > What is the exact purpose of "knowing that a client is able to playback
> > and/or capture"? What use case?
> >
> > Stéphane
>
>
> I've built a daemon, responsible of keeping track of connections from audio
> capture sources to audio playback devices. Basically, the daemon connects to
> jack, activates the client, and keeps listening for port registrations - then
> connects the ports to the relevant playback ports, as needed.
> I also have the need to know it as soon as the ports have been registered - if
> possible - because I have to answer very quickly to a connection request.
the PortRegistration events are delayed until the client activates
itself.
>
>
>
> Therefore I need to know when the client is ready to get connected, and to
> know it asap.. What could I do?
after you receive a PortRegistration event. you can directly connect it.
>
>
>
> PS Another detail - you need to activate the client (using jack_activate() )
> *before* you start registering ports, or can you do that before activation?
you can register ports before activating.
however. with a recent jack the Registration Events are delayed until
the client activates itself.
this feature comes along with jack-session.
> --
> Valerio Pilo
> Software Engineer
> --
> X O R O V O
> A University of Cagliari spin-off company
> Parco Tecnologico della Sardegna, Edificio 1
> 09010 - Pula, loc. Piscinamanna (CA) - Italy
> --
> skype: valerio.pilo
> phone: 070 9243 2663
>
> Jack-Devel mailing list
> [hidden]
> http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
--
torben Hohn
1297427343.2799_0.ltw:2,a <20110211122847.GL5550 at siel dot b>