AUMAKEELEMENTADDCONSTANT(3nas)
π AUMAKEELEMENTADDCONSTANT π
okay bestie, so this is AuMakeElementAddConstant(3) from the Library Functions Manual and it's literally the glow-up your audio element needed β¨
πΈ NAME πΈ
AuMakeElementAddConstant β initialize an AddConstant element
it's giving "set it up so it adds a constant to every sample" π
β¨ SYNOPSIS β¨
#include <audio/audiolib.h>
AuMakeElementAddConstant(element, input, constant)
AuElement *element; /* RETURN */
unsigned short input;
AuFixedPoint constant;
π«Ά ARGUMENTS π«Ά
elementβ this one's the RETURN girlie π it hands you back the initialized element.inputβ the index of the element that's gonna supply the audio data for this element. like, who's feeding us, yk?constantβ the fixed point value that gets added to each sample coming frominput. and heads up: you can build fixed point values withAuFixedPointFromSumandAuFixedPointFromFraction. iykyk π
π DESCRIPTION π
so what AuMakeElementAddConstant does is it sets the type member of element to AuElementTypeAddConstant β and then it initializes the addconstant member of element with the rest of the arguments. that's it, that's the whole vibe. no cap.
also important, bestie: AuMakeElementAddConstant is implemented as a macro. π
π₯ SEE ALSO π₯
AuMakeElementBundleAuMakeElementExportBucketAuMakeElementExportClientAuMakeElementExportDeviceAuMakeElementExportMonitorAuMakeElementImportBucketAuMakeElementImportClientAuMakeElementImportDeviceAuMakeElementImportWaveFormAuMakeElementMultiplyConstantAuMakeElementSum
and of course: audiolib β Network Audio System C Language Interface π¦
ngl the whole family is here, go read the siblings too, they ate π
okay that's the whole page, mwah π this was audiolib β element initialization, version 1.9.4, and yeah it's literally AuMakeElementAddConstant(3). periodt. πβ¨π
π¦ where this page comes from
- debian bookworm: libaudio-dev 1.9.4-7
- debian trixie: libaudio-dev 1.9.4-9
- ubuntu jammy: libaudio-dev 1.9.4-7build1
- ubuntu noble: libaudio-dev 1.9.4-8
- ubuntu questing: libaudio-dev 1.9.4-9
- ubuntu resolute: libaudio-dev 1.9.4-9.2
- ubuntu stonking: libaudio-dev 1.9.4-9.2
- copyright 1994 Steven King
- Copyright 1993 Network Computing Devices, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms