Linux Sound Programming by Jan Newmarch

Linux Sound Programming by Jan Newmarch

Author:Jan Newmarch
Language: eng
Format: epub, pdf
Publisher: Apress, Berkeley, CA


It also contains internal function pointers such as the function to run when the mono amplifier needs to do some work.

g_psMonoDescriptor->run = runMonoAmplifier;

The function _fini() is called to clean up all data when the plug-in is unloaded.

The meat of the plug-in is what to do to samples as they are processed. The input samples are contained in one buffer, the output samples are contained in another, and for the mono amplifier each input sample needs to be multiplied by the gain factor to give an output sample. The code is as follows:

void

runMonoAmplifier(LADSPA_Handle Instance,

unsigned long SampleCount) {



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.