All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Tim Goetze <tim@quitte.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: user mode sequencer timer?
Date: Mon, 19 Aug 2002 18:42:27 +0200	[thread overview]
Message-ID: <s5hu1lqssuk.wl@alsa2.suse.de> (raw)
In-Reply-To: <Pine.LNX.4.21.0208191734250.673-100000@summer.quitte>

At Mon, 19 Aug 2002 17:42:07 +0200 (CEST),
Tim Goetze wrote:
> 
> Takashi Iwai wrote:
> 
> >At Mon, 19 Aug 2002 09:22:10 +0200 (CEST),
> >Tim Goetze wrote:
> >> 
> >> Is it possible to register a sequencer client that acts as a timer
> >> (not only an event consumer/producer), and if so, how would one go 
> >> about implementing one?
> >
> >timer = event producer in a certain schedule, isn't it ??
> >it will deliver "tick" events in a programmed rythm.
> 
> You mean it is sufficient to emit SND_SEQ_EVENT_SETPOS_TICK or *_TIME 
> periodically, and transport control events accordingly? Are these 
> events then used by alsa-lib to update the queue timing information?

well, sorry, then i misunderstood your question.

do you mean that a sequencer client as a timer source, or as a
controller of the queue?

the former is difficult, because the queue is driven by interrupts
from a timer source.  that is, a sequencer client must give signals at
the constant and fine period.  this is not a job what a user process
does.

the latter, controlling a queue, would be feasible.
in this case, you can change the tempo or time skew dynamically by
sending events via system-timer port (0:0) to a specified queue.
but anyway, a queue must run individually from the client.

maybe i can give more specific answer if i understand your question
more clearly...


ciao,

Takashi


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

  reply	other threads:[~2002-08-19 16:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-19  7:22 user mode sequencer timer? Tim Goetze
2002-08-19 15:27 ` Takashi Iwai
2002-08-19 15:42   ` Tim Goetze
2002-08-19 16:42     ` Takashi Iwai [this message]
2002-08-19 18:40       ` Tim Goetze
2002-08-20 21:58         ` Frank van de Pol
2002-08-21 11:15           ` Tim Goetze

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=s5hu1lqssuk.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=tim@quitte.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 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.