To make things look better I suggest the following ugly solution:

add a function to the midi layer: midi_deltatime(int delta)
let this one be passed down to: midiout_deltatime(int delta)

let midiout_deltatime store this in a safe memory location until it is
used by the midiout_layer or perhaps ignored and overwritten.

that way we will not pollute all the individual fuction calls.

btw, if think there is a design beauty to the layer structure in the sound
subsystem. Alex, if you look at it from a hardware centric and not windows
centric perspective I think you will come to see this. This design was
chosen on the assumption that most real operating systems wrap the
hardware and make it available to the application programs in a way that
makes it is easy for a programmer with a bit of hardware knowledge to
understand and use. perhaps windows want's different components to
interact in more of a bazaar kind of way, but I'd really dislike to see
that in the source.

I think you should either make a soundserver_winmci and implement another
subsystem that suits the windows way of doing things or try to fit into
the current which is sound.



(... sorry about semi-broken shift key.)

-- 
/Rickard Lind




Reply via email to