Re: [linux-audio-dev] Re: mutex madness

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

Subject: Re: [linux-audio-dev] Re: mutex madness
From: Paul Barton-Davis (pbd_AT_Op.Net)
Date: pe loka   01 1999 - 16:30:24 EDT


EST requesteth:

>> >Yeah..simple is nice. Is modification of the dsp done in real-time in
>> >q, or is is just `interactive'?

modification of the DSP works by sending requests to the DSP
thread. It checks the queue every control cycle, and instantiates a Module
as a new DspProcess, initializes it, and puts it on the work queue. At
the end of any given "process()" function it also checks to see if the
DspProcess is "dead", and removes+recycles it if so.

So if you do something (say, generate a MIDI NoteOn or NoteOff) that
requires a change in the DSP program (defined by the DspProcess-es on
the current work queue), then you have a maximum of one control cycle
to wait until it happens. Obviously, you get to define the length of a
control cycle. I typically use 64 samples.

--p


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

This archive was generated by hypermail 2b28 : pe maalis 10 2000 - 07:27:12 EST