Sebastian Parborg wrote:
> I'm trying to convert the old midi oss3 driver in dosbox so that you 
> can use it with oss4 as you can see in this thread over at the dosbox 
> forums:
> http://vogons.zetafleet.com/viewtopic.php?t=21638
> I've got it to work but I have a problem with note skipping and such. 
> So I had to do a "usleep(2);" to get rid of it. However I do realise 
> that this in not the optimal way of doing it.
> So I try to use MIDI_MODE_TIMED 
> (http://manuals.opensound.com/developer/SNDCTL_MIDI_SETMODE.htm) 
> instead so I can ditch usleep. But I can't get it to work! I use the 
> ioctl call but it says that there is no such device :S
The timed mode feature is not functional yet so there is no point in 
trying to use it. This feature may (or may not) get finished in future 
OSS versions. However it looks like the number of users who want to use 
MIDI under Linux/Unix is so marginal that doing any work on it is just 
waste of time.

I think using usleep() or select/poll with timeout may actually be the 
right way to do MIDI. Current kernels (Linux at least) are very 
responsive in particular if (HZ >= 1000). In theory a kernel space 
sequencer based on hardware timer interrupts could provide slightly 
smaller timing jitter but how slightly?

Best regards,

Hannu
_______________________________________________
oss-devel mailing list
oss-devel@mailman.opensound.com
http://mailman.opensound.com/mailman/listinfo/oss-devel

Reply via email to