Subject: [linux-audio-dev] Sequencing+timers+DiskIO=ARGH
From: Juan Rojo (reduz_AT_codelarvs.com.ar)
Date: Tue Jul 11 2000 - 08:45:27 EEST
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
This archive was generated by hypermail 2b28 : Tue Jul 11 2000 - 08:27:46 EEST