From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve deRosier Subject: Re: stopping sequencer output queue gracefully Date: Thu, 14 Dec 2006 08:48:27 -0800 Message-ID: <4581805B.600@pianodisc.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: r10 kindsofpeople Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org 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