InitSound()
Syntax
Result = 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 function and should always check its result. If the sound environment fails, it's absolutely necessary to disable all the sound functions calls.
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