From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: user mode sequencer timer? Date: Mon, 19 Aug 2002 18:42:27 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from Cantor.suse.de (ns.suse.de [213.95.15.193]) by alsa.alsa-project.org (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id SAA24539 for ; Mon, 19 Aug 2002 18:42:29 +0200 In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Tim Goetze Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org 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