[Scummvm-devel] MIDI music

Ruediger Hanke tomjoad at muenster.de
Mon Aug 12 13:25:04 CEST 2002


Hi,

I've just noticed that MIDI music in my MorphOS port is broken. The
reason is that the "send" method of the MIDI driver class is called from
the main thread and not the music thread. Now I don't have a decent
debugger to look at the call stack so I don't know where this happens.

1) Is it possible without great efforts to somehow queue that data
and dispatch it from the music thread?

2) If not, could there be major music glitches somewhere if I just
discard those MIDI? The only other "fix" is that I mess with the
reply port in the IORequest structure which would result in a high
overhead (Mutexes, new port creation for every MIDI note, bla ...).

RĂ¼diger
-- 
"...wherever there's somebody fightin' for a place to stand
Or a decent job or a helping hand
Wherever somebody's struggling to be free
Look in their eyes Mom you'll see me."
- Bruce Springsteen, "The Ghost of Tom Joad"





More information about the Scummvm-devel mailing list