---
name: "al_destroy_sample_instance"
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_destroy_sample_instance"
---

# al\_destroy\_sample\_instance(3)

Allegro 5 API

## NAME

al\_destroy\_sample\_instance - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_audio.h>
  void al_destroy_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)
  ```

## DESCRIPTION

Detaches the sample instance from anything it may be attached to and frees it (the sample data, i.e. its ALLEGRO\_SAMPLE, is *not* freed!).

## SEE ALSO

[al\_create\_sample\_instance(3)](/al_create_sample_instance/3.md)
