Name
IsSound -- determine if Hollywood can output audio
Synopsis
ret = IsSound()
Function
This function checks if Hollywood can output audio. You can use this function if your application cannot run without audio being output. Normally, if Hollywood cannot output audio it will just skip all audio related code and still execute the script. If you do not want that, use IsSound() to determine if audio can be output.

Starting with Hollywood 8.0, you can also use the ForceSound() function to make Hollywood fail if the audio hardware cannot be allocated. See ForceSound for details.

Inputs
none

Results
ret
True if sound can be played, False otherwise
Example
If IsSound() = False
  SystemRequest("My App", "Sorry, sound is required!", "OK")
  End
EndIf
The above code checks if it can output sound and quits with a error message if this is not possible.

Show TOC