DOKK / manpages / debian 11 / allegro4-doc / lock_sample.3alleg4.en
lock_sample(3alleg4) Allegro manual lock_sample(3alleg4)

lock_sample - Locks all the memory used by a sample. Allegro game programming library.

#include <allegro.h>

void lock_sample(SAMPLE *spl);

Under DOS, locks all the memory used by a sample. You don't normally need to call this function because load_sample() and create_sample() do it for you.

load_sample(3alleg4), create_sample(3alleg4)

version 4.4.3 Allegro