From: Clemens Ladisch <clemens@ladisch.de>
To: Henning Thielemann <alsa@henning-thielemann.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: sending a sequencer event to a delayed queue
Date: Wed, 14 Mar 2012 22:36:26 +0100 [thread overview]
Message-ID: <4F610F5A.6060504@ladisch.de> (raw)
In-Reply-To: <alpine.DEB.2.00.1203142118210.26232@anubis.informatik.uni-halle.de>
Henning Thielemann wrote:
> On Wed, 14 Mar 2012, Henning Thielemann wrote:
>> output note-on event with timestamp 1s
>> output note-off event with timestamp 2s
>> control_queue SND_SEQ_EVENT_SETPOS_TIME 3s
>> drain
>>
>> Nothing happens.
To get events to be dispatched, you need a timer tick, i.e., you
have to make the timer run again.
>> I continue the queue after increasing the time:
>>
>> output note-on event with timestamp 1s
>> output note-off event with timestamp 2s
>> control_queue SND_SEQ_EVENT_SETPOS_TIME 3s
>> control_queue SND_SEQ_EVENT_CONTINUE
>> drain
>>
>> Now the note events are scheduled at 1s and 2s as if the SETPOS_TIME control was ignored.
>
> Queue time is some microseconds larger than 0.
>
>
> That is, SETPOS_TIME seems to successfully alter the time, but then CONTINUE seems to reset the time. Is this a bug or a feature?
CONTINUE behaves like START if the timer hasn't run yet.
Regards,
Clemens
next prev parent reply other threads:[~2012-03-14 21:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2012-03-13 22:33 ` Henning Thielemann
2012-03-14 8:22 ` Clemens Ladisch
2012-03-14 17:37 ` Henning Thielemann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F610F5A.6060504@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=alsa@henning-thielemann.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox