AuElement(3)

πŸ’– AuElement β€” the union that does it ALL πŸ’–

okay bestie, welcome to the Library Functions Manual entry for AuElement, and no cap this is one of those pages you're gonna want bookmarked. it's giving union energy. let's get into it 🫢


✨ Name ✨

AuElement β€” it's the AuElement union, bestie. that's the whole name. iconic, brief, slays. πŸ’…


πŸŽ€ Structures πŸŽ€

first things first, you gotta pull in the header or literally nothing works:

#include <audio/audiolib.h>

and here's the union itself, copy it exactly, don't get creative:

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;

it's a union, so all of these live in the same spot in memory and you only get one at a time. it's giving "pick your fighter" but make it C. 🌸


πŸ‘‘ Members πŸ‘‘

here's the whole cast, every single one, we are NOT skipping anybody:

  • type β€” tells you what kind of element this is. rn it's one of these constants, and yes you need to know them: AuElementTypeAddConstant, AuElementTypeBundle, AuElementTypeExportBucket, AuElementTypeExportClient, AuElementTypeExportDevice, AuElementTypeExportMonitor, AuElementTypeImportClient, AuElementTypeImportDevice, AuElementTypeImportBucket, AuElementTypeImportWaveForm, AuElementTypeMultiplyConstant, or AuElementTypeSum. that's the vibe check right there. βœ…
  • importclient β€” for reading audio data from a client application. πŸ“₯
  • importdevice β€” for reading audio data from a device. 🎧
  • importbucket β€” for reading audio data from a bucket. πŸͺ£
  • importwaveform β€” for reading audio data from a waveform generator. 🌊
  • bundle β€” for accessing tracks in audio data. πŸŽ›οΈ
  • multiplyconstant β€” scales the value of samples in audio data (aka it multiplies them, hence the name, she's literal). βœ–οΈ
  • addconstant β€” offsets the value of samples in audio data. βž•
  • sum β€” merges together samples from different inputs. literally the "and they were roommates" of audio. πŸ«‚
  • exportclient β€” for writing audio data to a client application. πŸ“€
  • exportdevice β€” for writing audio data to a device. πŸ”Š
  • exportbucket β€” for writing audio data to a bucket. πŸͺ£
  • exportmonitor β€” for writing monitor data to a client application. πŸ‘€

πŸ’€ Description πŸ’€

so basically: elements are instructions to the server telling it how to handle the audio data in a flow. that's it. that's the whole job. they're little notes you hand the server like "hey bestie do this with these samples" and the server goes "bet". 🧚


🌈 See Also 🌈

go read these next, 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
  • audiolib β€” Network Audio System C Language Interface. the whole entire ecosystem, periodt. πŸ’œ

ok that's the page fr fr, go build something cute with your audio flow, mwah πŸ˜­πŸ’–

k bye bestie, this was the audiolib β€” element union page, version 1.9.4, filed under AuElement(3). slay, bookmark it, tell your friends. πŸ’…βœ¨

πŸ“¦ where this page comes from