alsa sequencer: How to eliminate choking
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines · Michael Geis
Quoted 2 lines
I am pretty convinced that the problem is not queue overflow, since I flush queues every two seconds.
What do you mean by "flush"?
-Sorry, I meant drain.
Do you mean snd_seq_drain_output? This one should be called immediately after you've written a bunch of events so that the kernel sequencer sees them. It isn't related to queues.
How much in advance of the delivery time do you send the events?
Clemens
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 6 lines · Michael Geis
Quoted 2 lines
I am pretty convinced that the problem is not queue overflow, since I flush queues every two seconds.
What do you mean by "flush"?
-Sorry, I meant drain.
Do you mean snd_seq_drain_output? This one should be called immediately after you've written a bunch of events so that the kernel sequencer sees them. It isn't related to queues.
-Does that mean that I dont have to worry about how much I out into a queue before I call snd_seq_drain_output? I thought snd_seq_drain_output empties the pool, and thus needs to be called regularly to ensure that not more events are attempted to be placed in the pool than there is space. So queues and the necessity for draining are seperate facts?
How much in advance of the delivery time do you send the events?
-Zero. I split the score up into rounds of 2 seconds. At the beginning of each round, I schedule
the events for the coming round and call snd_seq_drain_output. I sleep until the beginning of the next round, where the pattern gets repeated intil all is played.
---------------------------------
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.