logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

al_identify_sample_f - Allegro 5 API

Description

       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(3alleg5) will add detection  of
       the types it can read.  You can also use al_register_sample_identifier(3alleg5) 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.

Name

       al_identify_sample_f - Allegro 5 API

See Also

al_init_acodec_addon(3alleg5), al_identify_sample(3alleg5), al_register_sample_identifier(3alleg5)

Allegro reference manual                                                           al_identify_sample_f(3alleg5)

Since

       5.2.8

Synopsis

              #include <allegro5/allegro_audio.h>

              char const *al_identify_sample_f(ALLEGRO_FILE *fp)

See Also