al_identify_sample_f(3)

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

πŸ’– al_identify_sample_f(3) πŸ’–

okay so this is a Library Functions Manual page, and the main character is the Allegro 5 API function al_identify_sample_f ✨🫢


πŸ“› NAME πŸ“›

al_identify_sample_f β€” Allegro 5 API πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro5/allegro_audio.h>

char const *al_identify_sample_f(ALLEGRO_FILE *fp)

πŸ” DESCRIPTION πŸ”

bestie, this function is lowkey a detective πŸ•΅οΈβ€β™€οΈ: it tries to guess the audio file type of the open ALLEGRO_FILE by reading the first few bytes. πŸ‘€

By default, Allegro cannot recognize any file types β€” like, zero, none, a blank stare 😭 β€” but calling al_init_acodec_addon(3) will add detection of the types it can read. You can also use al_register_sample_identifier(3) to add identification for custom file types. πŸ’–

It returns a pointer to a static string with a file extension for the type, including the leading dot. For example .wav or .ogg. 🌸 Returns NULL if the audio type cannot be determined. πŸ˜”


⏳ SINCE ⏳

5.2.8 β€” she’s been iconic since 5.2.8, periodt πŸ’…β­


πŸ‘€ SEE ALSO πŸ‘€


okay bye bestie 🫢 this was al_identify_sample_f(3) from the Allegro reference manual πŸ’– source/version: Allegro reference manual; date: not listed in the footer, so no fake date vibes here, ngl πŸŽ€βœ¨

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