Yes, I call unprepare when buffers are returned, but in most of these tests, I'm using the buffer for the first time when the failure occurs. I'm checking that midiOutPrepareHeader sets the dwFlags field like it's supposed to. (Keep those ideas coming -- there must be something I haven' thought of. I've asked the Midi Ox developer about some internal details of their code, and I've checked rtMidi -- which uses malloc() for every sysex send -- and I'd be interested to see any other source that successfully sends sysex messages.) -Roger
----- in reply to ------ Roger, Did you unprepare (midiOutUnprepareHeader) first? If the MIDIHDR that was passed in was already prepared, you'll need to do this. The MIDIHDR data structure stores a bool to indicate whether or not it's already been prepared. If it's been prepared already, midiOutPrepareHeader exits immediately without doing anything (or at least the documentation suggests so). -Ben Allison _______________________________________________ media_api mailing list [email protected] http://www.create.ucsb.edu/mailman/listinfo/media_api
