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

# ALLEGRO\_SAMPLE(3alleg5)

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(3alleg5)
