Lingo Dictionary > S > soundKeepDevice |  |

soundKeepDevice

Syntax

    the soundKeepDevice

Description

System property; for Windows only, prevents the sound driver from unloading and reloading each time a sound needs to play. The default value is `TRUE`.

You may need to set this property to `FALSE` before playing a sound to ensure that the sound device is unloaded and made available to other applications or processes on the computer after the sound has finished.

Setting this property to `FALSE` may adversely affect performance if sound playback is used frequently throughout the Director application.

This property can be tested and set.

Example

This statement sets the `soundKeepDevice` property to `FALSE`:

    set the soundKeepDevice = FALSE