---
name: "al_identify_sample"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_identify_sample"
---

# al\_identify\_sample(3)

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(3)](/al_identify_sample_f/3.md) 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(3)](/al_init_acodec_addon/3.md), [al\_identify\_sample\_f(3)](/al_identify_sample_f/3.md), [al\_register\_sample\_identifier(3)](/al_register_sample_identifier/3.md)
