AuDestroyBucket(3)

πŸ’– AuDestroyBucket(3) β€” the bucket destruction page πŸ’–

Library Functions Manual ✨ yes bestie, we're in the C library section, get comfy 🫢


🌸 NAME 🌸

AuDestroyBucket β€” destroy bucket πŸ’…


✨ SYNOPSIS ✨

#include <audio/audiolib.h>

void AuDestroyBucket(server, bucket, status)
    AuServer *server;
    AuBucketID bucket;
    AuStatus *status; /* RETURN */

like… it's giving "void, no return value, we just vibe and the bucket is gone" πŸ’€


πŸŽ€ ARGUMENTS πŸŽ€

  • server β€” the connection to the audio server πŸ–₯️✨ this is your link to the whole audio situation.
  • bucket β€” the ID of the bucket that's about to be destroyed πŸ’€ lowkey a little sad but okay.
  • status β€” if it's non-NULL, it flushes the output buffer and hands you back the status from the server πŸ“¨ (the comment in the synopsis literally says /* RETURN */, so yeah, this one's the output).

πŸ¦‹ DESCRIPTION πŸ¦‹

So AuDestroyBucket destroys the bucket you point it at, releasing the resources that bucket was using πŸŽ€βœ¨ that's the whole job, and it ate, no crumbs.

BUT β€” and this is the important part, bestie, don't skip it β€” if the bucket is currently in use, the resources will not be released until the bucket is no longer in use πŸ‘‘ so it's not instant-instant, it's more like "okay you're on the list, we'll free you when you're done serving."

no cap, it's not a force-delete. the bucket finishes its shift first. πŸ™ˆ

πŸ’€ ERRORS πŸ’€

  • AuBadBucket
  • AuBadAccess

yeah… those can happen. read them, respect them. 🫢


🌈 SEE ALSO 🌈

  • AuCreateBucket β€” the origin story, the birth of the bucket 🍼✨
  • audiolib β€” Network Audio System C Language Interface πŸ“š

🧚 SIGN-OFF 🧚

that's the page, babe πŸ’– it came from the audiolib docs, under the very cute descriptor "audiolib - bucket existence", at version 1.9.4 🌸

AuDestroyBucket(3) β€” go forth and clean up your buckets responsibly, queen πŸ‘‘πŸ’…βœ¨

πŸ“¦ where this page comes from