From: Takashi Iwai Subject: Re: Detecting alsa sequencer (dis)connects Date: Tue, 14 May 2002 18:48:10 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from Cantor.suse.de (ns.suse.de [213.95.15.193]) by alsa.alsa-project.org (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id SAA29321 for ; Tue, 14 May 2002 18:48:12 +0200 In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Maarten de Boer Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 14 May 2002 17:55:29 +0200, Maarten de Boer wrote: > > I want to have aconnectgui automatically update when changes have > been mode in the alsa sequencer connections (for example by > aconnect, or new applications being launched, or an application > creating a new connection). What would be the correct way to do > this? Maybe a polling alsa sequencer function that will tell > me about changes? you can connect a port of aconnectgui to the system port. the system port will broadcast a notification with SND_SEQ_EVENT_CLIENT/PORT_START, and PORT_SUBSCRIBED/UNSUBSCRIBED events if the corresponding action occurs. checking events can be done just like others via poll or select. of course, it would be better to ignore the connection of aconnectgui itself and the system port. Takashi _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: bandwidth@sourceforge.net