---
name: "lock_midi"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/lock_midi/3alleg4"
---

# lock\_midi(3alleg4)

Locks all the memory used by a MIDI file. Allegro game programming library.

## NAME

lock\_midi - Locks all the memory used by a MIDI file. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**void lock\_midi(MIDI \*midi);**

## DESCRIPTION

Under DOS, locks all the memory used by a MIDI file. You don't normally  need to call this function because load\_midi() does it for you.

## SEE ALSO

**load\_midi**(3alleg4)
