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:
AuFixePointFractionalAddendAuFixePointFromFractionAuFixePointIntegralAddendAuFixePointRoundDownAuFixePointRoundUpaudiolibβ 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
- debian bookworm: libaudio-dev 1.9.4-7
- debian trixie: libaudio-dev 1.9.4-9
- ubuntu jammy: libaudio-dev 1.9.4-7build1
- ubuntu noble: libaudio-dev 1.9.4-8
- ubuntu questing: libaudio-dev 1.9.4-9
- ubuntu resolute: libaudio-dev 1.9.4-9.2
- ubuntu stonking: libaudio-dev 1.9.4-9.2
- copyright 1994 Steven King
- Copyright 1993 Network Computing Devices, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms