Skip to contentSkip to conversation

non-running sequencer queues

DISCUSSION Chris Cannam 1 participant 2 messages Jan 12, 2004

lore
Share & tools
lore
#0 lore raw

I notice that if you send to a non-running sequencer queue an event scheduled for exactly the current time of the queue, then the event is delivered immediately: the queue doesn't wait to be started first.

Is this intentional? I had thought the main reason for allowing queues to stop and start was to permit stuffing a queue with events away from the pressure of time and then decide at leisure when to start playing them, but that only seems to make sense if the queue is guaranteed not to deliver any of them until you tell it to go. If it's intentional, what is the intended use? (compared to not queuing your event at all, that is.)

Chris

-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html

#1 lore raw
Quoted 6 lines · Chris Cannam

I notice that if you send to a non-running sequencer queue an event scheduled for exactly the current time of the queue, then the event is delivered immediately: the queue doesn't wait to be started first.

Is this intentional?

OK, my description was a little incomplete and now that I've refined my search on the ALSA list archives it seems the question may be obvious and perhaps moot. I was queueing my events on the stopped queue (using RT timestamps rather than ticks) and then draining the alsa-lib buffer via snd_seq_drain_output; of course, in practice I can simply defer the latter until I actually want to start the queue.

I do find the stopped queue's behaviour a bit perplexing though.

Chris

-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html