al_unlock_sample_id(3alleg5)

al_unlock_sample_id3alleg5

Allegro 5 api

Usage

#include <allegro5/allegro_audio.h>
void al_unlock_sample_id(ALLEGRO_SAMPLE_ID *spl_id)

Overview

Unlocks a ALLEGRO_SAMPLE_ID(3alleg5), allowing future calls to al_play_sample(3alleg5) to reuse it if possible. Note that after the id is unlocked, the ALLEGRO_SAMPLE_INSTANCE(3alleg5) that was previously returned by al_lock_sample_id(3alleg5) will possibly be playing a different sound, so you should only use it after locking the id again.

Since

5.2.3

[Unstable API]: New API.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

From allegro5-doc 2:5.2.10.1+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.