AuSetDeviceAttributes(3)
π AuSetDeviceAttributes β like, the audiolib glow-up for your device settings β¨
okay bestie, so this is a page from the audiolib manual (section 3, library functions, iykyk) and it's literally all about changing how a device on the Network Audio System behaves. it's giving "makeover montage but for audio hardware" π
πΈ NAME πΈ
AuSetDeviceAttributes β set device attributes π
β¨ SYNOPSIS β¨
#include <audio/audiolib.h>
void AuSetDeviceAttributes(server, device, valuemask, attributes,
status)
AuServer *server;
AuDeviceID device;
AuMask valuemask;
AuDeviceAttributes *attributes;
AuStatus *status; /* RETURN */
no cap, that's the whole signature. write it down, it's important π«Ά
π¦ ARGUMENTS π¦
serverβ the connection to the audio server. like, your lil hotline to the server, that's what this is.deviceβ the ID of the device. yes queen, you gotta say which device.valuemaskβ specifies which values inattributesto used. (yes, the original says "to used", we're keeping it, it's canon π) it has to be a bitwise inclusive OR of one or more of these constants:AuCompCommonIDMaskAuCompCommonKindMaskAuCompCommonUseMaskAuCommonFormatMaskAuCommonNumTracksMaskAuCommonAccessMaskAuCommonDescriptionMaskAuCompDeviceGainMaskAuCompDeviceLineModeMask
attributesβ the structure you're pulling the values from. which values? the ones the value mask told you about, bestie. that's the whole system.statusβ if it's non-NULL, it flushes the output buffer and returns the status from the server. so like, if you actually wanna know how it went, don't passNULLπ
π DESCRIPTION π
AuSetDeviceAttributes sets the attributes of device using only those values in attributes specified by valuemask. it does not go rogue. it does not touch extra stuff. it does exactly what the mask says, periodt.
β οΈ real talk though: trying to change attributes that aren't marked as changable will fail with a AuBadValue error. so like, vibe check the device first, okay? π
π ERRORS π
AuBadDevice, AuBadLength, AuBadValue.
that's the trio. if one of these shows up, that's the universe telling you something.
π SEE ALSO π
AuGetDeviceAttributes β the read-only counterpart, for when you just wanna look π
audiolib β Network Audio System C Language Interface
and that's the page, bestie! this one's from the audiolib manual, page AuSetDeviceAttributes(3), version 1.9.5, filed under "device attributes" β mwah, iconic, go slay your audio setup πβ¨π
π¦ where this page comes from
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- 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