AL_REGISTER_SAMPLE_SAVER(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

🌸 NAME 🌸

okay so this is al_register_sample_saver(3) from the Library Functions Manual, and the NAME line is literally al_register_sample_saver - Allegro 5 API. It’s an Allegro 5 API function, and it’s the one that registers a saver for samples. main character energy, no cap. πŸ’…

✨ SYNOPSIS ✨

              #include <allegro5/allegro_audio.h>

              bool al_register_sample_saver(const char *ext,
                 bool (*saver)(const char *filename, ALLEGRO_SAMPLE *spl))

πŸ’– DESCRIPTION πŸ’–

So bestie, you’re registering a handler for al_save_sample(3) β€” the function you pass in is the one that handles saving sample files with the extension you gave it. that’s the whole vibe. 🫢

The extension should include the leading dot (.) character β€” yes, the dot is part of the outfit, don’t skip it. It will be matched case-insensitively, so casing gets a pass. ✨

The saver argument may be NULL to unregister an entry. It’s giving β€œactually, never mind” energy. πŸ™ˆ

Returns true on success, false on error. It also returns false if unregistering an entry that doesn’t exist β€” lowkey rude, but those are the rules. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹


okay bye bestie πŸ’– this page is al_register_sample_saver(3) from the Allegro reference manual; the footer date is not listed, so I’m not making one up. fr fr. πŸŽ€

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms