AUFIXEDPOINTFROMFRACTION(3nas)
π AuFixedPointFromFraction β make a fixed point value π
okay bestie, so this one is from the audiolib crew, and it's genuinely the cutest tiny little macro you'll ever meet. it makes fixed point values. that's it. that's the whole job. and it does it with main character energy. β¨
πΈ SYNOPSIS πΈ
#include <audio/audiolib.h>
AuFixedPoint AuFixedPointFromFraction(nnn, ddd)
int nnn;
int ddd;
π ARGUMENTS π
nnnβ the numerator, babe. the top half of the fraction. the one on the pedestal. πdddβ the denominator. the bottom half. the one doing the actual dividing. no cap.
π¦ DESCRIPTION π¦
so like, AuFixedPointFromFraction builds you a whole fixed point value by dividing nnn by ddd. that's the vibe. numerator goes in, denominator goes in, fixed point value comes out. periodt. π
and the tea? it's implemented as a macro. not a real function, a macro. so don't come for it expecting function-call behaviour, because it is not giving that. π§
π SEE ALSO π
AuFixePointFractionalAddendAuFixePointFromSumAuFixePointIntegralAddendAuFixePointRoundDownAuFixePointRoundUpaudiolibβ Network Audio System C Language Interface
and that's the whole page, my love. this manual is from audiolib version 1.9.4, dated right there in the footer as AuFixedPointFromFraction(3), and it lives under the Library Functions Manual section (section 3, for the curious girlies π). go forth and make those fixed point values. slay. πβ¨π
π¦ 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