# unit RMT

### Raster Music Player library

author: Tomasz Biela (Tebe)

http://atariki.krap.pl/index.php/Rmt

## Types:

name: | type: | description:
--- | --- | ---
TRMT | Object player: pointer; // memory address of player modul: pointer; // memory address of a module procedure Init(a: byte); assembler; // Initializes procedure Play; assembler; procedure Sfx(effect, channel, note: byte); assembler; procedure Stop; assembler; // Stops Music end; | object for controling RMT player

## Interface:

name: | description:
--- | ---
TRMT.Init | #### procedure TRMT.Init(a: byte); assembler; Initialize RMT player ##### parameters: a - song number
TRMT.Play | #### procedure TRMT.Play; assembler; Play music, call this procedure every VBL frame
TRMT.Sfx | #### procedure TRMT.Sfx(effect, channel, note: byte); assembler; Play sound effect ##### parameters: effect - sound effect number channel note
TRMT.Stop | #### procedure TRMT.Stop; assembler; Halt RMT player