Re: [linux-audio-dev] Sequencing+timers+DiskIO=ARGH

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] Sequencing+timers+DiskIO=ARGH
From: Benno Senoner (sbenno_AT_gardena.net)
Date: Thu Jul 13 2000 - 03:30:54 EEST


On Tue, 11 Jul 2000, Juan Rojo wrote:
> >
> > Sounds like you should be using the ALSA Sequencer API. That way the kernel is
> > responsible for delivering the events exactly on time and you avoid all these
> > scheduling issues. Not to mention that a lot of the event processing work is
> > already done for you by avoiding having to deal with midi at the byte level.
> >
> > Scott
>
> Guess I missed the point a bit in my post. What i'm trying to say is that due
> to the kind of engine i'm doing.. notes _must_ go out throught midi to the
> synth in realtime. I cant Schedule midi events to be played in a future. The
> user might change something and the output will change at that exact moment.
>
> The only thing i need to be sure is that the output will be sent at the right
> moment in a 10ms resolution.
>
> Thanks!
>
> Juan Linietsky

simply use a kernel wit the low latency patch applies,
run your MIDI thread with SCHED_FIFO max priority and do not do any disk IO
within the midi loop.
It will certainly solve all your problems.

Benno.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Thu Jul 13 2000 - 02:52:36 EEST