From: Clemens Ladisch <clemens@ladisch.de>
To: Ru Vuott <vuott@yahoo.it>
Cc: alsa-devel@alsa-project.org
Subject: Re: Can ALSA invoke a Callback ?
Date: Fri, 26 Aug 2011 17:54:54 +0200 [thread overview]
Message-ID: <4E57C1CE.7060900@ladisch.de> (raw)
In-Reply-To: <1314369942.41651.YahooMailClassic@web29613.mail.ird.yahoo.com>
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
next parent reply other threads:[~2011-08-26 15:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1314369942.41651.YahooMailClassic@web29613.mail.ird.yahoo.com>
2011-08-26 15:54 ` Clemens Ladisch [this message]
[not found] <1314978948.16516.YahooMailClassic@web29618.mail.ird.yahoo.com>
2011-09-02 16:32 ` Can ALSA invoke a Callback ? Clemens Ladisch
[not found] <1314566910.38637.YahooMailClassic@web29620.mail.ird.yahoo.com>
2011-08-29 9:12 ` Clemens Ladisch
[not found] <1314385032.22194.YahooMailClassic@web29616.mail.ird.yahoo.com>
2011-08-26 22:03 ` Clemens Ladisch
2011-08-26 14:24 Ru Vuott
2011-08-26 14:34 ` Clemens Ladisch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E57C1CE.7060900@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=vuott@yahoo.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.