al_identify_sample_f(3)

al_identify_sample_f3

Allegro 5 api

Usage

#include <allegro5/allegro_audio.h>
char const *al_identify_sample_f(ALLEGRO_FILE *fp)

Overview

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, 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.

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

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.