AUMAKEELEMENTIMPORTDEVICE(3x)
π 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 useAuUnlimitedSamplesto say so. no cap, that's the flag for infinity energy. π₯num_actionsβ the number of actions chilling insideactions.actionsβ the list of actions to associate with this element. entries in this list can be initialized withAuMakeChangeStateAction,AuMakeSendNotifyAction, andAuMakeNoopAction. she may beNULLtoo, 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:
AuMakeElementAddConstantAuMakeElementBundleAuMakeElementExportBucketAuMakeElementExportClientAuMakeElementExportDeviceAuMakeElementExportMonitorAuMakeElementImportBucketAuMakeElementImportClientAuMakeElementImportWaveFormAuMakeElementMultiplyConstantAuMakeElementSumaudiolibβ 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
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- 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