PureBasic - Module

Overview

PureBasic can replay standard music modules to have nice music background during a game or an application. The modules are well known from Demo makers, as its an efficient way to build music on a computer. The tools used to create the modules are named 'Trackers' (ProTracker, FastTracker, Impulse Tracker...). The advantages of a module against a .wav/mp3 file are its very low size, a virtually endless length, the very fast replay, possible jump on a certain music part to fit to the screen action etc... It's of course possible to mix standard sound and module sound to have both played simultaneously.

The ModPlug library is used to have a very high quality module playback and multiple tracker support.

The command InitSound() has to be called with success before using any of the module related functions.

Command Index

CatchModule
FreeModule
GetModulePosition
GetModuleRow
IsModule
LoadModule
ModuleVolume
PlayModule
SetModulePosition
StopModule

Example

Module.pb

Supported OS

All

Reference Manual - Index