AUMAKEELEMENTMULTIPLYCONSTANT(3nas)

✨ AuMakeElementMultiplyConstant ✨

okay bestie, gather round, because we're about to initialize a MultiplyConstant element and honestly? it's giving main character energy. this little cutie lives in the Library Functions Manual, section 3, and its whole vibe is "element initialization." no cap. πŸŽ€


🌸 NAME 🌸

AuMakeElementMultiplyConstant β€” initialize a MultiplyConstant element


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <audio/audiolib.h>

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

πŸ’… ARGUMENTS πŸ’…

  • element β€” bestie this one is the RETURN value, it hands you back the element all initialized and ready to slay. πŸ’–
  • 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 every single sample from input gets multiplied by. and listen, if you need to build a fixed point value, you use AuFixedPointFromSum and AuFixedPointFromFraction. that's the move, fr fr. ✨

πŸ‘‘ DESCRIPTION πŸ‘‘

so AuMakeElementMultiplyConstant does two iconic things: it sets the type of the element to AuElementTypeMultiplyConstant, and then it initializes the multiplyconstant member of element with the rest of the arguments. periodt. πŸ’…

also, tea time: AuMakeElementMultiplyConstant is implemented as a macro. iykyk. 🧚


🌈 SEE ALSO 🌈

go be nosy with these siblings, they're all part of the same friend group:

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

and of course: audiolib β€” Network Audio System C Language Interface 🫢


okay that's the whole page, you ate that. this was audiolib - element initialization, version 1.9.4, AuMakeElem...plyConstant(3), and no i will not be normal about it. bye bestie, go multiply something by a constant πŸ’œπŸ”₯

πŸ“¦ where this page comes from