AuFixedPointFromSum(3)

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

πŸ’– AuFixedPointFromSum(3) β€” like, the fixed point girlie πŸ’–

okay bestie, so this is a page from the Library Functions Manual, section 3, and it's all about one lil macro that lives in audiolib. no cap, it's tiny, but it's iconic for what it does. let's get into it πŸ¦‹


✨ NAME ✨

AuFixedPointFromSum β€” make a fixed point value πŸ’…


🌸 SYNOPSIS 🌸

#include <audio/audiolib.h>

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

πŸŽ€ ARGUMENTS πŸŽ€

  • a β€” the integral value for the fixed point value. like, the whole-number part, the main character of the pair πŸ‘‘
  • b β€” the fractional value for the fixed point value. the lil decimal-y sidekick, the bestie to a's main character 🫢

πŸ’œ DESCRIPTION πŸ’œ

AuFixedPointFromSum constructs a fixed point from the two arguments. that's it, that's the whole vibe β€” you hand it a and b, it hands you back a fixed point. slay ✨

and here's the tea: AuFixedPointFromSum is implemented as a macro. so it's not even a real function call, it's just vibes that expand at compile time. periodt πŸ’…


πŸ¦‹ SEE ALSO πŸ¦‹

  • AuFixePointFractionalAddend
  • AuFixePointFromFraction
  • AuFixePointIntegralAddend
  • AuFixePointRoundDown
  • AuFixePointRoundUp

audiolib β€” Network Audio System C Language Interface 🌈


ok so real talk, those names in SEE ALSO are spelled exactly like that in the original β€” AuFixePoint with no d. not me fixing it, because the one rule is we keep every single detail fr fr. so if you go searching for AuFixedPointRoundDown you might be looking for the wrong thing, iykyk 😭

and that's the whole page, bestie, we ate πŸ“ no crumbs left. this was audiolib version 1.9.5, section 3 of the Library Functions Manual, AuFixedPointFromSum(3). go forth and make fixed points, you've got this πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from