AUMAKEELEMENTADDCONSTANT(3x)

πŸ“¦ version 1.9.5, in fedora 43, fedora 44

πŸ’– AuMakeElementAddConstant β€” bestie, let's init an AddConstant element πŸ’–

okay so this is a lil function from the audiolib family, living in the Library Functions manual, and it's literally just here to set up an AddConstant element for u. no cap. πŸŽ€


✨ SYNOPSIS ✨

#include <audio/audiolib.h>

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

🌸 ARGUMENTS 🌸

  • element β€” this one's a RETURN situation bestie, it hands u back the freshly initialized element. πŸ’…
  • input β€” the index of the element that's gonna supply the audio data for this element. that's the plug, that's the source. πŸ”Œ
  • constant β€” the fixed point value that gets added to every single sample coming from input. and listen, if u need to build one of these fixed point values, u use AuFixedPointFromSum and AuFixedPointFromFraction. iykyk. ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does AuMakeElementAddConstant actually do? 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. 🌈

also important bestie: AuMakeElementAddConstant is implemented as a macro. not a function. a macro. keep that in mind. πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

  • AuMakeElementBundle
  • AuMakeElementExportBucket
  • AuMakeElementExportClient
  • AuMakeElementExportDevice
  • AuMakeElementExportMonitor
  • AuMakeElementImportBucket
  • AuMakeElementImportClient
  • AuMakeElementImportDevice
  • AuMakeElementImportWaveForm
  • AuMakeElementMultiplyConstant
  • AuMakeElementSum

and of course, the main character herself: audiolib β€” the Network Audio System C Language Interface. 🫢


okay that's the whole page bestie, sending u off with love β€” this was the element initialization section of audiolib, version 1.9.5, and yeah it really does say AuMakeElementAddConstant(3) down at the bottom too. slay. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from