InitSound()

Syntax

Result = InitSound()
Description
Initializes the sound environment. This function must be always called before any other sound function and should always check its result. If the sound environment fails, it's absolutely necessary to disable all the sound functions calls.

Parameters

None.

Return value

Nonzero if the sound environment has been setup correctly, zero otherwise. Possible causes of failure under MS Windows: DirectX 7 isn't available or no sound card are present. If the program need to run on NT4.0, be sure to enable the 'NT4.0 Compliant executable' in the compiler options.

Supported OS

All

<- GetSoundPosition() - Sound Index - IsSound() ->