AUMAKEELEMENTIMPORTDEVICE(3x)

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

πŸ’– AuMakeElementImportDevice β€” bestie edition πŸ’–

okay so this is a page from the Library Functions Manual, section 3, and it's all about one lil function: AuMakeElementImportDevice. she initializes an ImportDevice element. that's her whole job. she's iconic for it. πŸŽ€


✨ NAME ✨

AuMakeElementImportDevice β€” initialize an ImportDevice element 🌸


✨ SYNOPSIS ✨

#include <audio/audiolib.h>

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

not me dropping the full signature, bestie, we keep it exact. πŸ’…


✨ ARGUMENTS ✨

  • element β€” this one's the return value, so she gives you back the initialized element. she's a giver. 🫢
  • sample_rate β€” the sample rate of the audio data. specifies it. that's the vibe. ⭐
  • device β€” the ID of the device we're reading the audio data from. πŸ‘‘
  • num_samples β€” how many samples to read from the device. and if you want unlimited samples, you use AuUnlimitedSamples to say so. no cap, that's the flag for infinity energy. πŸ”₯
  • num_actions β€” the number of actions chilling inside actions.
  • actions β€” the list of actions to associate with this element. entries in this list can be initialized with AuMakeChangeStateAction, AuMakeSendNotifyAction, and AuMakeNoopAction. she may be NULL too, she's flexible like that. πŸ’œ

✨ DESCRIPTION ✨

okay so here's the tea: AuMakeElementImportDevice sets the type member of element to AuElementTypeImportDevice, and then initializes the importdevice member of element with the remaining arguments. literally that's it. she does one thing and she does it flawlessly. πŸ’…βœ¨

and the plot twist: AuMakeElementImportDevice is implemented as a macro. not a regular function. a macro. iykyk. πŸ¦‹


✨ SEE ALSO ✨

the whole friend group, fr fr:

  • AuMakeElementAddConstant
  • AuMakeElementBundle
  • AuMakeElementExportBucket
  • AuMakeElementExportClient
  • AuMakeElementExportDevice
  • AuMakeElementExportMonitor
  • AuMakeElementImportBucket
  • AuMakeElementImportClient
  • AuMakeElementImportWaveForm
  • AuMakeElementMultiplyConstant
  • AuMakeElementSum
  • audiolib β€” Network Audio System C Language Interface 🌈

this page came to you from the audiolib docs, version 1.9.5, filed under element initialization in the Library Functions Manual. she ate, she left no crumbs, and honestly? obsessed. bye bestie, go init some elements πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«ΆπŸ˜­πŸ”₯πŸ‘‘πŸŒˆβ­πŸ’€πŸ™ˆπŸ“πŸ§šπŸ’œ
πŸ“¦ where this page comes from