Re: MusicPlayerStop() and all-notes-off messages
Re: MusicPlayerStop() and all-notes-off messages
- Subject: Re: MusicPlayerStop() and all-notes-off messages
- From: Lars Peters <email@hidden>
- Date: Tue, 21 Jan 2003 08:27:25 +0100
Am Dienstag, 21.01.03 um 07:02 Uhr schrieb Christopher Corbell:
Hi,
I'm having a different problem than this (the DLS just ignores
incoming MIDI under some circumstances) I realise now that the
problem you're seeing is not related to the DLS, but to your
interpretation of what Stop means to the music player. It doesn't
mean "stop playing and close all open notes" it means stop advancing
forward in time.
Andre.
This does make sense, but then I suppose there is a more general
question of
how to make the DLS unit forget about the MusicSequence notes it's
playing,
or otherwise reset itself? Since an all-notes-off message does not
work before
or after calling MusicPlayerStop(). It only seems to work after I
start the sequence
again at time zero, but then only after the formerly sounding notes
sound again.
Is there any way, short of something brute force like completely
uninitializing the graph
or disposing of the MusicDevice, to stop the sounding of all sequenced
notes in conjunction
with MusicPlayerStop() and a DLS synth unit?
Oops, I should read more carefully! I thought AllNotesOff did solve
your problem.
Try AudioUnitReset(mySynthUnit, kAudioUnitScope_Global, 0);
I can still hear the last note for a very tiny period, though.
Lars
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.