All of lore.kernel.org
 help / color / mirror / Atom feed
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 16:34:00 +0200	[thread overview]
Message-ID: <4E57AED8.7040408@ladisch.de> (raw)
In-Reply-To: <1314368677.30767.YahooMailClassic@web29606.mail.ird.yahoo.com>

Ru Vuott wrote:
> I would like to know how I can ask ALSA to invoke a "Callback"
> function when an Midi event arrives from an extern-device.

This is not possible.

The mechanism usually used for this is to check for events from the
MIDI device in the main message loop (which must be based on poll() or
select()).

Are you using raw MIDI or sequencer devices?  How does your program's
event handling work?


Regards,
Clemens

  reply	other threads:[~2011-08-26 14:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-26 14:24 Can ALSA invoke a Callback ? Ru Vuott
2011-08-26 14:34 ` Clemens Ladisch [this message]
     [not found] <1314369942.41651.YahooMailClassic@web29613.mail.ird.yahoo.com>
2011-08-26 15:54 ` Clemens Ladisch
     [not found] <1314385032.22194.YahooMailClassic@web29616.mail.ird.yahoo.com>
2011-08-26 22:03 ` Clemens Ladisch
     [not found] <1314566910.38637.YahooMailClassic@web29620.mail.ird.yahoo.com>
2011-08-29  9:12 ` Clemens Ladisch
     [not found] <1314978948.16516.YahooMailClassic@web29618.mail.ird.yahoo.com>
2011-09-02 16:32 ` 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=4E57AED8.7040408@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.