AUMAKEELEMENTIMPORTWAVEFORM(3nas)

hey bestie, welcome to the AuMakeElementImportWaveForm page πŸ’– you might catch it truncated as AuMakeElem...ortWaveFrom(3) up in the header, but it's the same iconic library-functions-manual energy. this one's all about initializing an ImportWaveForm element, and we're gonna go through every single detail together, no cap ✨

✨ NAME ✨

AuMakeElementImportWaveForm β€” initialize an ImportWaveForm element πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <audio/audiolib.h>

AuMakeElementImportWaveForm(element, sample_rate, wave_form,
num_samples, freq, num_actions, actions)
    AuElement *element; /* RETURN */
    unsigned short sample_rate;
    int wave_form;
    AuInt32 freq;
    AuInt32 num_samples;
    int num_actions;
    AuElementAction *actions;

πŸ’… ARGUMENTS πŸ’…

  • element β€” Returns the initialized element. it's the glow-up destination, bestie πŸ’–
  • sample_rate β€” Specifies the sample rate of the audio data. lowkey the heartbeat of the whole thing.
  • wave_form β€” Specifies the waveform to use. Currently, the following waveforms are defined: AuWaveFormSquare, AuWaveFormSine, AuWaveFormSaw, and AuWaveFormConstant. pick your fighter ✨
  • freq β€” Specifies the frequency of the waveform. the vibe check, if you will 🎢
  • num_samples β€” Specifies the number of samples to read. Use AuUnlimitedSamples to indicate an unlimited number of samples. infinite slay, periodt.
  • num_actions β€” Specifies the number of actions in actions.
  • actions β€” Specifies the list of actions to associate with this element. Entries in this list can be initialized with AuMakeChangeStateAction, AuMakeSendNotifyAction, and AuMakeNoopAction. May be NULL. so flexible, we love to see it 🫢

πŸŽ€ DESCRIPTION πŸŽ€

AuMakeElementImportWaveForm sets the type member of element to AuElementTypeImportWaveForm and initializes the importwaveform member of element with the remaining arguments. it's giving "set it and forget it" but make it audio, fr fr.

AuMakeElementImportWaveForm is implemented as a macro. so it's not a function-function, it's a macro moment πŸ’…


πŸ’€ NoteS πŸ’€

A server might not support all the waveforms currently defined. so like, don't come for the server if it doesn't know every waveform, bestie. it's doing its best 😭


🌈 SEE ALSO 🌈

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

audiolib β€” Network Audio System C Language Interface


okay so that's the whole page, and it came from audiolib - element initialization, version 1.9.4. no date on this one, but it's still iconic. now go initialize those elements, you main character πŸ‘‘βœ¨

πŸ“¦ where this page comes from