Music and sound

[ Back ]

NaaLaa uses the open source Audiere for music and sound playback. Therefor audiere.dll must be included with your programs. Please visit http://audiere.sourceforge.net for more information about what music and sound formats are supported!

Sub routines

procedure load music music_id, filename$
procedure set music volume music_id, vol
procedure play music music_id[, looped]
procedure stop music music_id
procedure free music music_id
function music(music_id)
procedure load sound(sound_id, filename$)
procedure play sound(sound_id[, vol[, pan]])
procedure free sound(sound_id)
function sound(sound_id)


procedure load music music_id, filename$

Load filename to music_id.


procedure set music volume music_id, vol

Set volume of music music_id to vol (0..100).


procedure play music music_id[, looped]

Start playing music music_id and loop it if looped is set to true (default).


procedure stop music music_id

Stop playing music music_id.


procedure free music music_id

Free music music_id. All music is automaticly freed when program exits.


function music(music_id)

Return true if music music_id has been loaded.


procedure load sound sound_id, filename$

Load filename to sound sound_id.


procedure play sound sound_id[, vol[, pan]]

Play sound sound_id at volume vol (0..100, default 100) and with the panning pan (-100..100, left to right, default 0).


procedure free sound sound_id

Free sound sound_id. All sounds are automaticly freed when program exits.


function sound(sound_id)

Return true if sound sound_id has been loaded.


[ Back ]