---
name: "ALLEGRO_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/ALLEGRO_SAMPLE"
---

# ALLEGRO\_SAMPLE(3)

Allegro 5 API

## NAME

ALLEGRO\_SAMPLE - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_audio.h>
  typedef struct ALLEGRO_SAMPLE ALLEGRO_SAMPLE;
  ```

## DESCRIPTION

An ALLEGRO\_SAMPLE object stores the data necessary for playing pre-defined digital audio. It holds a user-specified PCM data buffer and information about its format (data length, depth, frequency, channel configuration). You can have the same ALLEGRO\_SAMPLE playing multiple times simultaneously.

## SEE ALSO

[ALLEGRO\_SAMPLE\_INSTANCE(3)](/ALLEGRO_SAMPLE_INSTANCE/3.md)
