---
name: "load_ibk"
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/load_ibk"
---

# load\_ibk(3alleg)

Reads in a .IBK patch definition file for the Adlib driver. Allegro game programming library.

## NAME

load\_ibk - Reads in a .IBK patch definition file for the Adlib driver. Allegro game programming library.

## SYNOPSIS

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

**int load\_ibk(char \*filename, int drums);**

## DESCRIPTION

Reads in a .IBK patch definition file for use by the Adlib driver. If  drums is set, it will load it as a percussion patch set, otherwise it  will use it as a replacement set of General MIDI instruments. You may  call this before or after initialising the sound code, or can simply set  the ibk\_file and ibk\_drum\_file variables in the configuration file to  have the data loaded automatically. Note that this function has no effect  on any drivers other than the Adlib one!

## RETURN VALUE

Returns non-zero on error.

## SEE ALSO

[**install\_sound**(3alleg)](/install_sound/3alleg.md)
