Name
ForceSound -- fail if audio hardware cannot be allocated (V8.0)
Synopsis
ForceSound(fail)
Function
Normally, when a script tries to play a sound and the audio hardware cannot be allocated, Hollywood will continue running normally, just without sound. If you don't want that, i.e. if you want Hollywood to fail in case the audio hardware cannot be allocated, call this function and pass True in the fail parameter. In that case Hollywood will throw an error in case the audio hardware cannot be allocated.

Note that alternatively, you can also check the result of IsSound() to see if the audio hardware can be allocated. See IsSound for details.

Inputs
fail
specifies whether or not Hollywood should fail if the audio hardware cannot be allocated (the default setting is False, which means that Hollywood won't fail)

Show TOC