Skip to contentSkip to conversation

snd_seq: buffered vs. direct output of events

DISCUSSION Gerald Grabner 2 participants 2 messages Feb 21, 2007 – Feb 22, 2007

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

At Wed, 21 Feb 2007 21:51:49 +0100,

Quoted 6 lines · Gerald Grabner

Hi there,

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

Quoted 6 lines

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