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 from input. and heads up: you can build fixed point values with AuFixedPointFromSum and AuFixedPointFromFraction. 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 πŸ”₯

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

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