I took a look at pmmacosxcm.c and found:
-------------------------------
static PmError
midi_abort(PmInternal *midi)
{
return pmNoError;
}
-------------------------------
so abort isn't implemented for OS X (as reported by Evan Laforge 9/2/08
6:38PM) -- he says MIDIFlushOutput() is the CoreMIDI function to call --
I didn't write the original OS X port and didn't realize this was
unimplemented -- and I haven't been able to work on it yet.
So, yes, you're doing the right thing, and I'm sorry you got caught by
this "undocumented restriction" (aka bug). In the meantime, I think the
options are: fix midi_abort() or don't send messages too far in advance
and just wait for the queue to drain out.
-Roger
Justin Francos wrote:
I'm using:
OS 10.5.5
Clozure Common Lisp 1.2-r10552
cffi 0.9.2
portmidi release 82
cm-portmidi-lisp connector thing 2.0.2
I did try calling 'close' just after calling 'abort'; this likewise
had no effect (except that the outdev needed to be reopened). Am I to
take it that the appropriate (albeit currently not working correctly
under my configuration) way of doing this would be to call abort, then
close the stream, then reopen the stream?
Is there some other means to do what I want to do?
_______________________________________________
media_api mailing list
media_api@create.ucsb.edu
http://lists.create.ucsb.edu/mailman/listinfo/media_api