AuGetScratchFlow(3)

โœจ AuGetScratchFlow โœจ

okay bestie, buckle up, we're reading the AuGetScratchFlow(3) page from the Library Functions Manual together and honestly? it's giving short-queen energy. one job, does it well. ๐Ÿ’…


๐ŸŒธ 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 vibe, don't lose it ๐Ÿ”ฅ
  • status โ€” if this is non-NULL, it flushes the output buffer and hands you back the status from the server. it's marked RETURN so like, yeah, it's the out-param, she reports back ๐Ÿ“ฎ

๐Ÿ‘‘ Description

so AuGetScratchFlow grabs one of the pre-allocated flow ID's if availible (yes that's the spelling in the original, we don't touch it, no cap ๐Ÿซถ), or โ€” plot twist โ€” it creates a new flow if there isn't one just sitting there waiting for you.

then it returns the flow ID. and if something went wrong? it returns AuNone. that's the "no thoughts, head empty, error happened" of flow IDs ๐Ÿ˜ญ


๐Ÿ’€ Errors

AuBadAlloc.

that's it. that's the whole error section. short and devastating fr fr ๐Ÿ™ˆ

๐ŸŒˆ See Also

  • AuCreateFlow
  • AuReleaseScratchFlow
  • audiolib โ€” Network Audio System C Language Interface

and that's the whole page, bestie, you ate it up โญ periodt ๐Ÿ’œ

audioutil ยท version 1.9.4 โ€” signin' off, mwah ๐Ÿ’–๐Ÿงšโ€โ™€๏ธ

๐Ÿ“ฆ where this page comes from