Scroll to navigation

AuMakeElementAddConstant(3) Library Functions Manual AuMakeElementAddConstant(3)


AuMakeElementAddConstant - initialize an AddConstant element


#include <audio/audiolib.h>

AuMakeElementAddConstant(element, input, constant)
AuElement *element; /* RETURN */
unsigned short input;
AuFixedPoint constant;


Returns the initialized element.
Specifies the index of the element to supply the audio data for this element.
Specifies the fixed point value to be added to each sample from input. Fixed point values can be constructed with AuFixedPointFromSum and AuFixedPointFromFraction.


AuMakeElementAddConstant sets the type member of element to AuElementTypeAddConstant and initializes the addconstant member of element with the remaining arguments.

AuMakeElementAddConstant is implemented as a macro.

See Also

AuMakeElementBundle, AuMakeElementExportBucket, AuMakeElementExportClient, AuMakeElementExportDevice, AuMakeElementExportMonitor, AuMakeElementImportBucket, AuMakeElementImportClient, AuMakeElementImportDevice, AuMakeElementImportWaveForm, AuMakeElementMultiplyConstant, AuMakeElementSum.

audiolib - Network Audio System C Language Interface

1.9.4 audiolib - element initialization