.\" Automatically generated by Pandoc 3.1.6.2 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "al_identify_sample_f" "3" "" "Allegro reference manual" "" .hy .SH NAME .PP al_identify_sample_f - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include char const *al_identify_sample_f(ALLEGRO_FILE *fp) \f[R] .fi .SH DESCRIPTION .PP 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. .PP Returns a pointer to a static string with a file extension for the type, including the leading dot. For example \[lq].wav\[rq] or \[lq].ogg\[rq]. Returns NULL if the audio type cannot be determined. .SH SINCE .PP 5.2.8 .SH SEE ALSO .PP al_init_acodec_addon(3), al_identify_sample(3), al_register_sample_identifier(3)