rtaddout

INSTRUMENT design -- sample output-writing function

The rtaddout() function is used in RTcmix instrument design to write one frame of generated samples to the output buffer for hearing or soundfile-writing. It will write the appropriate number of channels depending on the value of the INSTRUMENT variable outputchans (see the Instrument listing for more information about INSTRUMENT variables).

Typically rtaddout is used in the sample-computing loop inside the INSTRUMENT::run() member function. rtaddout assumes that rtsetoutput() was called in the INSTRUMENT::init() member function.

It replaces the older ADDOUT macro used in disk-only cmix.



Usage



Examples




See Also