AUMAKEELEMENTEXPORTDEVICE(3x)

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

✨ NAME ✨

okay so bestie, welcome to the Library Functions Manual πŸ’– today's main character is AuMakeElementExportDevice β€” she initializes an ExportDevice element. that's it, that's her whole job, and she does it flawlessly πŸ’…


🌸 SYNOPSIS 🌸

#include <audio/audiolib.h>

AuMakeElementExportDevice(element, input, device, sample_rate,
num_samples, num_actions, actions)
    AuElement *element; /* RETURN */
    unsigned short input;
    AuDeviceID device;
    unsigned short sample_rate;
    AuUint32 num_samples;
    int num_actions;
    AuElementAction *actions;

no cap, that's the whole vibe right there πŸ¦‹


πŸŽ€ ARGUMENTS πŸŽ€

  • element β€” she's the RETURN girlie 🫢 you hand her over and she comes back all initialized. glow-up complete.
  • input β€” the index of the element that's feeding the audio data into this one. like, who's supplying the tea β˜•
  • device β€” the ID of the device where all that audio data is getting sent. destination unlocked πŸ“
  • sample_rate β€” the sample_rate of the audio data. literally just the sample rate, bestie, she said what she said ✨
  • num_samples β€” how many samples you're sending to the device. and listen β€” if you want it to just keep going forever and ever, use AuUnlimitedSamples and she will NOT stop πŸ‘‘
  • num_actions β€” the number of actions sitting in actions. yes, you have to count them yourself πŸ™ˆ
  • actions β€” the list of actions you're associating with this element. you can initialize the entries in this list with AuMakeChangeStateAction, AuMakeSendNotifyAction, and AuMakeNoopAction. and oh β€” it May be NULL. so if you're feeling minimal, that's valid πŸ’€

πŸ’œ DESCRIPTION πŸ’œ

so what does she actually do? AuMakeElementExportDevice sets the type member of element to AuElementTypeExportDevice and then initializes the exportdevice member of element with all the remaining arguments. every single one. nothing left behind πŸ’–

and here's the little secret β€” AuMakeElementExportDevice is implemented as a macro. iykyk ✨


🌈 SEE ALSO 🌈

the whole friend group, all iconic, all linked:

  • AuMakeElementAddConstant
  • AuMakeElementBundle
  • AuMakeElementExportBucket
  • AuMakeElementExportClient
  • AuMakeElementExportMonitor
  • AuMakeElementImportBucket
  • AuMakeElementImportClient
  • AuMakeElementImportDevice
  • AuMakeElementImportWaveForm
  • AuMakeElementMultiplyConstant
  • AuMakeElementSum

and also audiolib β€” Network Audio System C Language Interface 🧚


and that's the whole page, bestie!! this was audiolib β€” element initialization, version 1.9.5, brought to you by the fine folks behind AuMakeElem...xportDevice(3) πŸŽ€ mwah, go initialize something gorgeous πŸ’…βœ¨

πŸ“¦ where this page comes from