All of lore.kernel.org
 help / color / mirror / Atom feed
From: David McNab <rebirth@orcon.net.nz>
To: alsa-devel@lists.sourceforge.net
Subject: HELP! seq - writing to q in realtime mode
Date: Wed, 12 May 2004 22:08:58 +1200	[thread overview]
Message-ID: <40A1F7BA.6020109@orcon.net.nz> (raw)

(apologies if you've received this twice)

Hi,

I'm experienced in C, but am a total beginner to alsa seq api (only been
coding to it for a week), and desperately need some help. I'm going
crazy here!

I'm trying to create and schedule outbound events, in realtime absolute
mode.

When sending these events directly, using SND_SEQ_QUEUE_DIRECT, the
events get delivered fine to subscribers.

But when adding realtime absolute timestamps, and marking the event to a
queue I've created, only the very first event (time=0) gets sent.

I've struggled for days with the doco, reading example code etc, but am
having no success. There are no simple examples that cover my situation.

Can someone please give an overview (or preferably sample code)
explaining what I need to do to transmit events in realtime absolute mode?

For instance, do I need to set up timers on the queue?
What obscure function calls do I need to make, from the first
snd_seq_alloc_queue() call, to the actual snd_seq_event_output_direct()
calls sending the individual midi events?

What are the little details - obvious to you experts, but not obvious to
hackers new to the ALSA APIs?

I really need help here - I'm tearing my hair out in frustration, and am
brain-fried from wading through the thousands of different api functions
and macros, and hampered by the lack of detailed doco and tutorial
examples (the miniArp example doesn't help, because it's tick-based).

Thanks profusely in advance for your help

Kind regards
David

PS - ALSA is really great software. The APIs are very comprehensive. But
IMO ALSA could really benefit from the addition of an
ultra-stupid-simple-dumbed-down API which covers most basic scenarios,
doesn't confuse the newer programmer with 5,347 different function calls
and data types, and doesn't require weeks of learning.



-- 

Kind regards
David

--

leave this line intact so your email gets through my junk mail filter


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3

             reply	other threads:[~2004-05-12 10:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-12 10:08 David McNab [this message]
2004-05-12 15:55 ` HELP! seq - writing to q in realtime mode Clemens Ladisch

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=40A1F7BA.6020109@orcon.net.nz \
    --to=rebirth@orcon.net.nz \
    --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.