From: Steve deRosier <derosier@pianodisc.com>
To: r10 kindsofpeople <r10kindsofpeople@hotmail.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: stopping sequencer output queue gracefully
Date: Thu, 14 Dec 2006 08:48:27 -0800 [thread overview]
Message-ID: <4581805B.600@pianodisc.com> (raw)
In-Reply-To: <BAY21-F222A395293750A95AC6FE3CDD50@phx.gbl>
John,
Not sure of an answer to the first part of your question but for what I
usually do is a snd_seq_free_queue() and a snd_seq_close().
But the answer to the second part: you need to keep track of what notes
are on yourself... or take the easy way out and just run an all notes
off message for every channel, or actually do a note off message for
every note; that way no matter what you know you'll never stick a note.
Don't forget to turn the pedal controllers off also.
- Steve
r10 kindsofpeople wrote:
> Is there example code around that shows how to stop MIDI playback
> gracefully?
>
> At present, I'm doing a snd_seq_drop_output() and a snd_seq_stop_queue(),
> and getting some interesting behavior when I try to restart.
>
> I'm also wondering if Alsa does anything to track or handle the stuck notes
> that result, or if my client needs to be responsible for tracking these and
> turning them off before stopping the queue.
>
> John
>
> _________________________________________________________________
> Talk now to your Hotmail contacts with Windows Live Messenger.
> http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://get.live.com/messenger/overview
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-devel
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
next prev parent reply other threads:[~2006-12-14 16:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-14 14:12 stopping sequencer output queue gracefully r10 kindsofpeople
2006-12-14 16:48 ` Steve deRosier [this message]
2006-12-15 7:30 ` 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=4581805B.600@pianodisc.com \
--to=derosier@pianodisc.com \
--cc=alsa-devel@lists.sourceforge.net \
--cc=r10kindsofpeople@hotmail.com \
/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.