A Scripting Language for Web, Linux and Windows

A Scripting Language for Web, Linux and Windows

Module: sound

Support sound functions (only on Windows available). The module must be loaded with dl('sound');

See also example Play Sound.

Function/Arguments Return Description
sound_create (number devideId) handle Create sound handle for specific deviceId, default device is 0. On success the sound handle is returned, on error null is returned.
sound_play (handle handle, number frequency, number duration, number volume, number voice) bool Play sound of created sound handle with frequency, duration in milliseconds, volume from 0 to 200 and MIDI voice from 0 to 255. On success true is returned.
sound_wait_finished (handle handle) bool Wait until played sound of sound handle is finished. On success true is returned.
sound_close (handle handle) bool Close sound handle. On success true is returned.

back to Home

V1 Version 0.95 - Documentation generated Sun, 02 Dec 2018 16:29