AuElement(3)

πŸ“¦ version 1.9.5, in fedora 43, fedora 44

πŸ’– AuElement β€” the union that's literally the moment πŸ’–

okay bestie, sit down, we're talking AuElement(3) from the audiolib manual, and honestly? it's giving backstage pass to the whole audio server. πŸŽ€


✨ Name ✨

AuElement β€” it's a union. yes, a union union. the AuElement union, to be exact. periodt. πŸ’…


🧚 Structures 🧚

first things first, you gotta bring in the header, no cap:

#include <audio/audiolib.h>

and then boom, here's the whole thing, character for character, don't touch it:

typedef union _AuElement
{
    unsigned short type;
    AuElementImportClient importclient;
    AuElementImportDevice importdevice;
    AuElementImportBucket importbucket;
    AuElementImportWaveForm importwaveform;
    AuElementBundle bundle;
    AuElementMultiplyConstant multiplyconstant;
    AuElementAddConstant addconstant;
    AuElementSum sum;
    AuElementExportClient exportclient;
    AuElementExportDevice exportdevice;
    AuElementExportBucket exportbucket;
    AuElementExportMonitor exportmonitor;
}AuElement;

look at her. twelve members, one union, main character energy fr fr. 🌟


πŸ‘‘ Members πŸ‘‘

okay so here's the roster, one by one, and yes we're doing all of them:

  • type β€” this one tells you what kind of element you're looking at. right now it's one of these constants: AuElementTypeAddConstant, AuElementTypeBundle, AuElementTypeExportBucket, AuElementTypeExportClient, AuElementTypeExportDevice, AuElementTypeExportMonitor, AuElementTypeImportClient, AuElementTypeImportDevice, AuElementTypeImportBucket, AuElementTypeImportWaveForm, AuElementTypeMultiplyConstant, or AuElementTypeSum. it's basically the vibe check of the whole union. πŸ¦‹
  • importclient β€” for reading audio data from a client application. pulling up to the function like hi bestie 🫢
  • importdevice β€” for reading audio data from a device. the hardware is feeding you, literally.
  • importbucket β€” for reading audio data from a bucket. yes, a bucket. it's a whole thing, iykyk. πŸ“
  • importwaveform β€” for reading audio data from a waveform generator. wave generator said let me cook 🌊
  • bundle β€” used to access tracks in audio data. it's the group chat organizer of the union. πŸ’œ
  • multiplyconstant β€” scales the value of samples in audio data. turning the volume knob but make it math. ✨
  • addconstant β€” offsets the value of samples in audio data. shifting everything over, no drama.
  • sum β€” merges together samples from different inputs. friendship. community. slay. πŸ”₯
  • exportclient β€” for writing audio data to a client application. sending it back out into the world πŸ’Œ
  • exportdevice β€” for writing audio data to a device. bye bye data, go be a speaker πŸŽ€
  • exportbucket β€” for writing audio data to a bucket. the bucket giveth and the bucket taketh away.
  • exportmonitor β€” for writing monitor data to a client application. the eyes on the operation πŸ‘€

🌸 Description 🌸

so what even is an element? an element is literally an instruction to the server telling it how to handle the audio data in a flow. that's it. that's the whole gig. the server is the one doing the work, you're just leaving it a very detailed note. πŸ’Œ


πŸ’« See Also πŸ’«

go read these next, bestie, they're all part of the same friend group:

AuMakeElementAddConstant, AuMakeElementBundle, AuMakeElementImportClient, AuMakeElementImportDevice, AuMakeElementImportBucket, AuMakeElementImportWaveForm, AuMakeElementExportClient, AuMakeElementExportDevice, AuMakeElementExportBucket, AuMakeElementExportMonitor, AuMakeElementMultiplyConstant, AuMakeElementSum, AuReadElement, AuSetElements, AuSetElementParameters, AuWriteElement.

also: audiolib β€” Network Audio System C Language Interface. iconic, no notes. ⭐


and that's the page, babe πŸ’– this was audiolib element union, version 1.9.5, from the AuElement(3) manual β€” written by the audiolib girlies, presented to you with love, and honestly? she ate. go forth and build your flows, you absolute legend. πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from