I'm currently writing a midi sequencing application. Due to the nature of it. I
need to send the midi commands in the most realtime way i can. So i'm using
SIGALARM every 10ms to trigger a player step and send the proper midi commands.
This seems to work fine..  althought when there is some system load lags a
little bit. Still i can give the program more priority and there's not any
problem.  BUT if i try to run it and via a loopback: midi out -> external midi
device -> line in - I try to record what i do to disk (using xwave or gmurf) ..
i get _ugly_ delays that mess up my playing entirely each time the audio
recording application writes to disk.

Is there any way i can fix this? Should I use a separate thread against a
gettimeofday function instead SIGALARM? Any idea why the
sound corrupts so much when sends sound to disk? or
at least a sound recording application that wont kill my timer?

Thanks in advance!

Juan Linietsky

Reply via email to