InitSound()

Syntax

Result.l = InitSound()

Description

Initialize the sound environment. If the 'Result' returns 0, then no sound can be played on this computer, or the sound device is busy. This function must be always called before any other sound command and should always check its result. If the sound environment fails, it's asolutely necessary to disable all the sound commands calls.

Possible causes of failure under Linux: SDL isn't available or no sound card are present.

Supported OS

Windows, AmigaOS, Linux

Sound - Index