AuGetScratchFlow(3)

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

πŸ’– AuGetScratchFlow(3) πŸ’–

okay bestie, we're in the audiolib manual β€” that's the Network Audio System C Language Interface, and this little function is literally the friend who always has a spare flow ID in her bag. πŸŽ€


✨ Name ✨

AuGetScratchFlow β€” get a scratch flow πŸ¦‹


✨ Synopsis ✨

#include <audio/audiolib.h>

AuFlowID AuGetScratchFlow(server, status)
    AuServer *server;
    AuStatus *status; /* RETURN */

✨ Arguments ✨

  • server β€” the connection to the audio server. that's your link to the whole party. πŸ”₯
  • status β€” if it's non-NULL, we flush the output buffer and hand you back the status from the server. if it's NULL, we just… don't. πŸ™ˆ

✨ Description ✨

so here's the tea: AuGetScratchFlow grabs one of the pre-allocated flow ID's if one is available, or β€” plot twist β€” it creates a brand new flow if there isn't one just sitting there. πŸ‘‘

either way it returns the flow ID. and if something went wrong? you get AuNone. no flow, no vibes, just AuNone. 😭


✨ Errors ✨

  • AuBadAlloc. that's it, that's the whole list. πŸ’€

✨ See Also ✨

  • AuCreateFlow
  • AuReleaseScratchFlow

and of course: audiolib β€” Network Audio System C Language Interface πŸ’œ


kisses, this was audioutil version 1.9.5, mwah πŸ’…βœ¨

πŸ“¦ where this page comes from