All of lore.kernel.org
 help / color / mirror / Atom feed
* sending a sequencer event to a delayed queue
@ 2012-03-10 18:20 Henning Thielemann
  2012-03-10 20:51 ` Clemens Ladisch
  0 siblings, 1 reply; 13+ messages in thread
From: Henning Thielemann @ 2012-03-10 18:20 UTC (permalink / raw)
  To: alsa-devel


Unfortunately the ALSA doc does not say, what happens if I send an event 
to a queue that is not running. I expected that the event is being 
delivered once the queue is started. But it seems that instead the event 
is dropped. What is the reason for that behaviour?

  What I want to do is the following: I have a program that computes a 
sequence of events in real-time. Since computation of an event requires 
varying amount of time, I want to add a latency in order to get a 
correctly timed output. To this end I set up two queues: One queue 
triggers computation of events via Echo messages and the other queue 
delivers the computed events. I want to use the same time stamps for both 
queues and just start the queues with a delay between them.
  Why is it not possible to use one queue and add latency manually to the 
timestamps? Because the user of the program shall be able to halt the 
computation. Thus the computation must be halted first and the delivery of 
events must be halted later. I cannot achieve this with one queue and a 
queue_stop command.
  Now the problem is: When my program starts it computes the first event 
and sends it to the second (delayed) queue. But since this queue is 
started only after a delay, it is not yet running and thus my event is not 
delayed, but lost. :-( How to solve that problem? Is there a proposed way 
to manage latency in ALSA sequencing?


Regards,
Henning

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

end of thread, other threads:[~2012-03-14 21:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-10 18:20 sending a sequencer event to a delayed queue Henning Thielemann
2012-03-10 20:51 ` Clemens Ladisch
2012-03-11 15:41   ` Henning Thielemann
2012-03-11 20:40     ` Clemens Ladisch
2012-03-11 21:08       ` Henning Thielemann
2012-03-11 22:14         ` Henning Thielemann
2012-03-12  8:21         ` Clemens Ladisch
2012-03-14 20:01           ` Henning Thielemann
2012-03-14 20:22             ` Henning Thielemann
2012-03-14 21:36               ` Clemens Ladisch
2012-03-13 22:33       ` Henning Thielemann
2012-03-14  8:22         ` Clemens Ladisch
2012-03-14 17:37       ` Henning Thielemann

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.