AuFixedPointFromSum(3)

✨ AuFixedPointFromSum ✨

okay bestie, welcome to AuFixedPointFromSum(3) β€” yes that's the manual page name, yes it lives in the audiolib library, and yes it is exactly as cute and simple as it sounds πŸ’–


πŸŽ€ NAME πŸŽ€

AuFixedPointFromSum β€” make a fixed point value. that's it. that's the whole job. iconic behavior honestly πŸ‘‘


🌸 SYNOPSIS 🌸

#include <audio/audiolib.h>

AuFixedPoint AuFixedPointFromSum(a, b)
      int a;
      int b;

look at her. two lil ints in, one AuFixedPoint out. a whole glow-up in one line πŸ¦‹


πŸ’… ARGUMENTS πŸ’…

  • a β€” the integral value for the fixed point value. the whole-number part, the main character of the pair πŸ’œ
  • b β€” the fractional value for the fixed point value. the little decimal-ish sidekick, the supporting role that still eats πŸ“

🫢 DESCRIPTION 🫢

so what does she actually do? AuFixedPointFromSum constructs a fixed point from the two arguments. that's the vibe. you hand her a and b, she hands you back a fixed point. no cap, no drama, no side quests 🌈

and here's the tea: AuFixedPointFromSum is implemented as a macro. so like, don't be out here taking her address or anything, she's a macro not a function, iykyk πŸ’€


🌟 SEE ALSO 🌟

go check out her friends, they're all slaying in their own lanes:

  • AuFixePointFractionalAddend
  • AuFixePointFromFraction
  • AuFixePointIntegralAddend
  • AuFixePointRoundDown
  • AuFixePointRoundUp
  • audiolib β€” Network Audio System C Language Interface

ngl the spelling in those See Also names is exactly how they appear, so write them that way or the compiler will simply not know her 😭

that's the whole page, bestie, you ate it up fr fr πŸ’– this little gem comes to you from audiolib, version 1.9.4 β€” go forth and construct fixed points, you've got this πŸ‘‘βœ¨

πŸ“¦ where this page comes from