PureBasic - Music

Overview

PureBasic can replay standard music modules to have nice music background during a game or an application. The music modules are well known from Demo makers, as its an efficient way to build music on a computer. The tools used to create the music modules are named 'Trackers' (ProTracker, FastTracker, Impulse Tracker...). The advantages of a music 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 music to have both played simultaneously.

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

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

Command Index

CatchMusic
FreeMusic
GetMusicPosition
GetMusicRow
IsMusic
LoadMusic
MusicVolume
PlayMusic
SetMusicPosition
StopMusic

Example

Music.pb

Supported OS

All

Reference Manual - Index