All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bernhard Gerlach <gerlacbd@emt.iis.fhg.de>
To: alsa-devel@lists.sourceforge.net
Subject: sequencer buffer
Date: Fri, 07 Nov 2003 12:00:56 +0100	[thread overview]
Message-ID: <3FAB7B68.8020007@emt.iis.fhg.de> (raw)


Hello NG,

again I've got a question regarding the ALSA midi sequencer. I tried to 
generate Midi time code. For that, I allocated a queue, started it and 
then filled it up with a couple of midi quarter frame messages. Each 
messages had got a timestamp containing the (real/absolute) time, at 
which the message should be sent by the queue. After filling the queue, 
I drained the buffer and tried to let the process sleep until 
snd_seq_event_output_pending( handle ) falls below a given value (I 
tried 500). But I realized, that the buffer size is never decremented, 
even if the queue outputs events.

The first 7 seconds of output seem to be ok (I control the output on a 
harddisk recorder which just reads the incoming midi time code and 
displays it). But then I get "Resource temporarily unavailable" errors 
when enqueueing another quarter frame event. I think, thats because the 
output buffer is full. But why isn't an event extracted from buffer when 
it is sent by a queue?

Thanks for answers,

Bernhard

-- 

---------------------------------
Bernhard Gerlach
Fraunhofer AEMT
Am Helmholtzring 1 (Haus M)
98693 Ilmenau
Germany

mail: gerlacbd@emt.iis.fhg.de
---------------------------------



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

             reply	other threads:[~2003-11-07 11:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-07 11:00 Bernhard Gerlach [this message]
2003-11-07 13:08 ` sequencer buffer Paul Davis
2003-11-13 15:27   ` Bernhard Gerlach

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=3FAB7B68.8020007@emt.iis.fhg.de \
    --to=gerlacbd@emt.iis.fhg.de \
    --cc=alsa-devel@lists.sourceforge.net \
    /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.