Re: [Jack-Devel] API versioning

PrevNext  Index
DateFri, 11 Feb 2011 14:00:27 +0100
From Valerio Pilo <[hidden] at akhela dot com>
To[hidden] at lists dot jackaudio dot org
In-Reply-Totorbenh Re: [Jack-Devel] API versioning
In data venerdì 11 febbraio 2011 13:28:47, torbenh ha scritto:
> 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.
> 
> > 
> > Jack-Devel mailing list
> > [hidden]
> > http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org

Thank you very much.
-- 
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
PrevNext  Index

1297429255.7105_0.ltw:2,a <201102111400.27170.valerio.pilo at akhela dot com>