On Wed, 6 Feb 2002, Stuffed Crust wrote:

> 
> On Wed, Feb 06, 2002 at 07:18:51PM +0100, Rickard Lind wrote:
> > A midi device driver should output midi data should output normal midifile
> > data blocks. It should return a pointer to a structure with length and
> > the actual data.
> > 
> > Then the midi output layer is not called directly by the midi device
> > drivers. The midi output is responsible for parsing
> > the blocks and do the deltatime waiting.
> 
> This sounds good -- but there is one thing that concerns me.   How would
> this model take into account the special SCI midi commands?  In
> particular, what about the commands that require that the main game loop
> get notified of something (like cue events, etc?)

They are not the concern of the device drivers, they just eat things like
normal note on/off, reverb, etc... but they output regular midifile
blocks.

the level above have to interpret SCI midi and do something like

if (realmidi)
  midiout(midi_noteon(parameters))
else
  midi_noteon(parameter)


-- 
/Rickard Lind




Reply via email to