---
name: "lock_midi"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/lock_midi"
---

# lock\_midi(3alleg)

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**(3alleg)](/load_midi/3alleg.md)
