All of lore.kernel.org
 help / color / mirror / Atom feed
* snd_seq: buffered vs. direct output of events
@ 2007-02-21 20:51 Gerald Grabner
  2007-02-22 11:04 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Gerald Grabner @ 2007-02-21 20:51 UTC (permalink / raw)
  To: alsa-devel

Hi there,

I'm wondering what the pros and cons of buffered vs. direct output of
sequencer events might be.

As far as I have found out, snd_seq_event_output_direct has the
advantage of not having to care about calling snd_seq_drain_output. On
the other hand, snd_seq_event_output allows the removal of scheduled
events via snd_seq_remove_events.

But I am sure that there are a number of other arguments...

Thx,
Gerald

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: snd_seq: buffered vs. direct output of events
  2007-02-21 20:51 snd_seq: buffered vs. direct output of events Gerald Grabner
@ 2007-02-22 11:04 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2007-02-22 11:04 UTC (permalink / raw)
  To: Gerald Grabner; +Cc: alsa-devel

At Wed, 21 Feb 2007 21:51:49 +0100,
Gerald Grabner wrote:
> 
> Hi there,
> 
> I'm wondering what the pros and cons of buffered vs. direct output of
> sequencer events might be.
> 
> As far as I have found out, snd_seq_event_output_direct has the
> advantage of not having to care about calling snd_seq_drain_output. On
> the other hand, snd_seq_event_output allows the removal of scheduled
> events via snd_seq_remove_events.
> 
> But I am sure that there are a number of other arguments...

If you want just to send events immediately, there is practially no
disadvantage of using direct output.  The buffered outputs are
basically designed for scheduled events.


Takashi

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-02-22 11:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-21 20:51 snd_seq: buffered vs. direct output of events Gerald Grabner
2007-02-22 11:04 ` Takashi Iwai

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.