---
name: "al_identify_sample"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_identify_sample/3alleg5"
---

# al\_identify\_sample(3alleg5)

Allegro 5 API

## NAME

al\_identify\_sample - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_audio.h>
  char const *al_identify_sample(char const *filename)
  ```

## DESCRIPTION

This works exactly as al\_identify\_sample\_f(3alleg5) but you specify the filename of the file for which to detect the type and not a file handle. The extension, if any, of the passed filename is not taken into account - only the file contents.

## SINCE

5\.2.8

## SEE ALSO

al\_init\_acodec\_addon(3alleg5), al\_identify\_sample\_f(3alleg5), al\_register\_sample\_identifier(3alleg5)
