All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Kaspar Bumke <kaspar.bumke@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: usage of snd_seq_set_client_event_filter
Date: Tue, 10 Jul 2012 22:04:19 +0200	[thread overview]
Message-ID: <4FFC8AC3.6020902@ladisch.de> (raw)
In-Reply-To: <CAB+dmjiXDs7u20T8HJJZAv47o-61kZStL2+=ZX5zLjBsH7VPdQ@mail.gmail.com>

Kaspar Bumke wrote:
> I was trying to use snd_seq_set_client_event_filter in my application but I
> can't seem to get it to work correctly.
>
> I have attached a small test program which can be compiled with "g++ -o
> test test.cpp -lasound".  My alsa-lib is at 1.0.25. It should simple print
> the note number for any noteOn events.
>
> I was under the impression that the way I have used it only noteOn events
> would get through but it seems that only the first noteOn event I send it
> gets through. I have been sending events using VMPK.

Any filtered-out events gets rejected with an error, which gets reported
back to the sending application.  If that application does nothing to
handle the error, all further attempts to send events will get the same
error because the event being rejected is still in the output buffer.

This behaviour makes event filters pretty much useless.
Just ignore any events you don't want.


Regards,
Clemens

  parent reply	other threads:[~2012-07-10 20:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-08 19:41 usage of snd_seq_set_client_event_filter Kaspar Bumke
2012-07-08 19:43 ` Kaspar Bumke
2012-07-10 20:04 ` Clemens Ladisch [this message]
2012-07-10 20:16   ` Kaspar Bumke

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=4FFC8AC3.6020902@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=kaspar.bumke@gmail.com \
    /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.