AuSetElementStates(3)

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

πŸ’– AuSetElementStates(3) πŸ’–

okay bestie, so this one lives in the Library Functions Manual section of the audiolib docs, and it's literally the glow-up button for elements in a flow ✨


🌸 NAME 🌸

AuSetElementStates β€” set the state of elements in a flow πŸ‘‘


✨ SYNOPSIS ✨

#include <audio/audiolib.h>

void AuSetElementStates(server, num_states, states, status)
    AuServer *server;
    int num_states;
    AuElementStates *states;
    AuStatus *status; /* RETURN */

no cap, that's the whole shape of it 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • server β€” the connection to the audio server. it's giving "hi hello who am i talking to" πŸ’…
  • num_states β€” how many element states we're talking about here, fr fr.
  • states β€” the actual list of element states you wanna use. this is the main character of the whole call 🌟
  • status β€” if it's non-NULL, it flushes the output buffer and hands you back the status from the server. if you're not nosy about it, you can pass NULL πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

AuSetElementStates changes the states of those elements in those flows specified in states. like, exactly those ones. the ones you listed. that's the vibe check βœ…


πŸ’€ NOTES πŸ’€

🚨 okay so listen. attempting to set the state of non-component elements will result in an error. and the non-component girlies are: AddConstant, Bundle, ExportMonitor, MultiplyConstant, and Sum.

so like. don't do that. they said no. 😭


πŸ”₯ ERRORS πŸ”₯

the possible ones, in all their chaotic glory:

  • AuBadFlow
  • AuBadElement
  • AuBadAlloc
  • AuBadLength

🌈 SEE ALSO 🌈

  • AuGetElementStates β€” the other half of the duo, iykyk πŸ’–
  • audiolib β€” Network Audio System C Language Interface

🧚 the cute sign-off 🧚

this page is from audiolib, the flow element states corner of things, version 1.9.5, dated AuSetElementStates(3) β€” and that's the whole tea, bestie πŸ“βœ¨πŸ’œ

πŸ“¦ where this page comes from