AuListDevices(3)
β¨ AuListDevices β¨
okay so bestie, welcome to AuListDevices from the Library Functions Manual β it's an audiolib thing, it lives in section 3, and it's literally just here to give you a whole list of devices. that's the whole vibe. π
πΈ NAME πΈ
AuListDevices β list devices π
π¦ SYNOPSIS π¦
#include <audio/audiolib.h>
AuDeviceAttributes *AuListDevices(server, valuemask, attributes,
ndevices, status)
AuServer *server;
AuMask valuemask;
AuDeviceAttributes *attributes;
int *ndevices; /* RETURN */
AuStatus *status; /* RETURN */
π ARGUMENTS π
serverβ the connection to the audio server. your link to the mothership fr fr π«Άvaluemaskβ tells you which device attributes are actually defined in theattributesargument. it's gotta be a bitwise inclusive OR of zero or more of these constants, no cap:AuCompCommonIDMask,AuCompCommonKindMask,AuCompCommonUseMask,AuCommonFormatMask,AuCommonNumTracksMask,AuCommonAccessMask,AuCommonDescriptionMask,AuCompDeviceMinSampleRateMask,AuCompDeviceMaxSampleRateMask,AuCompDeviceLocationMask,AuCompDeviceGainMask,AuCompDeviceLineModeMask,AuCompDeviceChildrenMask, orAuCompDeviceMasks. and like β ifvaluemaskis zero, the attributes get fully ignored and aren't even referenced. ghosted, honestly. πattributesβ the structure where the values get taken from (the ones picked out by the value mask, obviously). πndevicesβ this one returns the number of devices in the returned list. slay. β¨statusβ if it's non-NULL, it flushes the output buffer and returns the status straight from the server. π§
π DESCRIPTION π
AuListDevices returns a list of devices whose attributes match those values in attributes specified by valuemask. and if something went wrong? it returns NULL, with ndevices set to 0. sad but true π
when you're done with the list, use AuFreeDeviceList to release the memory β don't just leave it there, bestie, that's not the move. π
π ERRORS π
AuBadLength.
π SEE ALSO π
AuGetDeviceAttributes.audiolibβ Network Audio System C Language Interface
audiolib β device attributes Β· version 1.9.4 Β· dated AuListDevices(3) π«Ά that's the whole page, bestie, go list some devices and live your main character era π β¨
π¦ 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