AuServer(3)
π AuServer β the manual page, but make it make sense π
okay bestie, gather round, because today we're talking about AuServer(3) from the Library Functions Manual, and honestly? it's giving "quietly holding the entire audio server connection together" energy. no cap. let's get into it π
β¨ Name β¨
AuServer β it's the AuServer structure, babe. that's the whole vibe. the whole thing. periodt. π
π¦ Structures π¦
first things first, you gotta pull in the header:
#include <audio/audiolib.h>
and here's the shape of the thing itself:
typedef struct _AuServer
{
. . .
}AuServer;
yeah, the members are literally . . . in the docs. mysterious. enigmatic. main character energy. π
πΈ MACROS πΈ
π¨ read this first, fr fr: do not dereference the members of the AuServer structure directly. like, do not. instead, use the access macros. that's the whole point of them. okay? okay. π
just so we're clear on the vocab: server is a pointer to a AuServer structure. got it? slay.
now here's the full roster, no skips, no skimming:
AuServerConnectionNumber(server)β accesses theintconnection number. β¨AuServerQLength(server)β accesses theintvalue with the length of the input queue. π«AuServerVendor(server)β accesses the NUL-terminated string giving the identification of the audio server vendor. πAuServerProtocolMajorVersion(server)β accesses theintvalue of the major protocol revision number of the audio server. π’AuServerProtocolMinorVersion(server)β accesses theintvalue of the minor protocol revision number of the audio server. π’AuServerVendorRelease(server)β accesses theintvalue with the release number of the audio server. π¦AuServerString(server)β accesses the NUL-terminated string giving the server name. π·οΈAuServerNextRequest(server)β accesses theAuUint32serial ID of the next protocol request to be sent. π€AuServerLastKnownRequestProcessed(server)β accesses theAuUint32serial ID of the last known protocol request sent. π₯AuServerResourceBase(server)β accesses theAuIDbase used in constructing resource ID's. π§±AuServerResourceMask(server)β accesses theAuIDmask used in constructing resource ID's. πAuServerMinSampleRate(server)β accesses theintvalue with the minimum sample rate supported by the server. πAuServerMaxSampleRate(server)β accesses theintvalue with the maximum sample rate supported by the server. πAuServerMaxTracks(server)β accesses theintvalue indicating the maximum number of tracks supported by the server. ποΈAuServerNumFormats(server)β accesses theintvalue indicating the number of formats supported by the server. πΌAuServerNumElementTypes(server)β accesses theintvalue indicating the number of element types supported by the server. π§©AuServerNumWaveForms(server)β accesses theintvalue indicating the number of waveform generators supported by the server. γ°οΈAuServerNumActions(server)β accesses theintvalue indicating the number of actions supported by the server. β‘AuServerNumDevices(server)β accesses theintvalue indicating the number of server devices. ποΈAuServerNumBuckets(server)β accesses theintvalue indicating the number of server buckets. πͺ£AuServerFormat(server, n)β accesses theintvalue of the n'th format supported by the server. π΅AuServerElementType(server, n)β accesses theintvalue of the n'th element supported by the server. π§¬AuServerWaveForm(server, n)β accesses theintvalue of the n'th waveform supported by the server. πAuServerAction(server, n)β accesses theintvalue of the n'th action supported by the server. π₯AuServerDevice(server, n)β accesses theAuDeviceAttributesstructure of the n'th server device. πAuServerBucket(server, n)β accesses theAuBucketAttributesstructure of the n'th server bucket. πͺ£AuClientOfID(server, resource)β extracts theClientIDfromresource. πAuID AuAllocID(server)β invokes the ID allocator function. π
see? told you it was a lot. every single one is here though. ate and left no crumbs. π
π Description π
the AuServer structure describes the connection to the audio server. that's it. that's the description. short, sweet, and honestly kind of iconic. π«Ά
π See Also π
AuCloseServer.audiolibβ Network Audio System C Language Interface
and that's the whole page, bestie!! πβ¨ this one came from the audiolib source, version 1.9.4, and the footer says it's dated 1.9.4 too (same number, matching vibes, we love consistency π). anyway β go use those access macros and do not dereference the members directly. i'm watching. ππ
π¦ 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