AuMakeInputTrack(3)

✨ AuMakeInputTrack(3) β€” from the Library Functions Manual πŸ’–

okay bestie, pull up a chair, we're doing a library function today. this one lives in the Library Functions Manual and it's called AuMakeInputTrack. say it with me. slay.


🌸 Name 🌸

AuMakeInputTrack β€” initialize an input track πŸŽ€


πŸ¦‹ Synopsis πŸ¦‹

#include <audio/audiolib.h>

AuMakeInputTrack(track, element_num, track)
    AuInputTrack *track;  /* RETURN */
    unsigned short element_num;
    unsigned char track;
not me clocking that <code>track</code> shows up TWICE in that signature πŸ’€ yes bestie, that's really how it is, we do not touch it, we do not "fix" it, we simply respect the lore.

πŸ’… Arguments πŸ’…

  • track β€” this one is the RETURN girlie 🫢 you hand her an AuInputTrack pointer and she comes back all initialized. main character behavior.
  • element_num β€” the index of the element that's gonna supply the audio data for this track. think of it as pointing at which element is feeding the vibes. it's an unsigned short.
  • track β€” and here's the second track, the icon, the legend: this one specifies the track number. it's an unsigned char. yes, same name as the first one. no, we are not okay. yes, we are still gonna use it correctly. 😌

🌈 Description 🌈

so what does she do? AuMakeInputTrack is used to initialize an AuInputTrack structure. that's it, that's the job, and she does it flawlessly every single time. no cap. ✨

also, the page notes this absolute gem: AuMakeImportTrack is implemented as a macro. πŸ‘‘

and for the record, this whole thing is part of audiolib β€” the Network Audio System C Language Interface. iconic. we love a networking audio legend. πŸ’œ

heads up bestie: nothing here is deprecated or dangerous, it's just a lil initializer doing its lil job. no surprises, no undefined behavior, no drama. πŸ“

⭐ See also, in spirit ⭐

  • audio/audiolib.h β€” the header you gotta #include, don't forget her, she's the whole reason this compiles. 🌸
  • the rest of audiolib β€” because this function is one tiny butterfly in a whole garden. πŸ¦‹

and that's the tea, bestie. this page came to you straight out of audiolib version 1.9.4, filed under AuMakeInputTrack(3), and no matter how many times track shows up in that signature, she ate. periodt. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from