From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clemens Ladisch Subject: Re: Can ALSA invoke a Callback ? Date: Fri, 26 Aug 2011 17:54:54 +0200 Message-ID: <4E57C1CE.7060900@ladisch.de> References: <1314369942.41651.YahooMailClassic@web29613.mail.ird.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by alsa0.perex.cz (Postfix) with ESMTP id D3F31246FD for ; Fri, 26 Aug 2011 17:54:55 +0200 (CEST) In-Reply-To: <1314369942.41651.YahooMailClassic@web29613.mail.ird.yahoo.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Ru Vuott Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Ru Vuott wrote: > I'm using Alsa "Seq" functions. > > My midi-program - obviously - does not know exactly when the extern midi event 'll arrive.... > Has it to read uninterruptedly his port, waiting for the events.... ? This is done only in single-purpose command-line programs like arecordmidi. When you have other events, you collect the file descriptors of all your devices/pipes/whatever, and wait for all of them in a poll()-based loop. How does your program handle events? Or are you using a GUI framework? Regards, Clemens