al_identify_sample(3)

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

πŸ’– NAME πŸ’–

Okay bestie, welcome to al_identify_sample(3) from the Library Functions Manual β€” this is the Allegro 5 API, and she's here to help you detect a file's type from its contents βœ¨πŸ’…

al_identify_sample β€” the Allegro 5 API function that tells you what kind of file you're dealing with πŸŽ€


✨ SYNOPSIS ✨

#include <allegro5/allegro_audio.h>

char const *al_identify_sample(char const *filename)

πŸ¦‹ DESCRIPTION πŸ¦‹

So this one works exactly like al_identify_sample_f(3), no cap β€” except instead of passing a file handle, you pass the filename of the file whose type you want to detect πŸ’–

And listen: the extension, if there even is one, of the filename you pass in is not taken into account. Not even a little. It's only looking at the file contents, periodt πŸ”₯


🌸 SINCE 🌸

5.2.8 β€” she's been iconic since then πŸŽ€βœ¨


🌈 SEE ALSO 🌈


Signed, sealed, delivered by the Allegro reference manual β€” source/version line handled, date not printed on this page, so consider this your timeless little sign-off πŸ’…βœ¨

πŸ“¦ 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