#include "genlib.h"Functions | |
| void | PlayNamedSound (string name) |
| void | SetSoundOn (bool on) |
| void PlayNamedSound | ( | string | name | ) |
This function looks for a sound file with the given name in the "Sounds" subdirectory of the project. If a matching sound file is located, it is loaded and played. The function generates an error if the file cannot be found or the sound facility is unimplemented for the platform.
| void SetSoundOn | ( | bool | on | ) |
This function enables/disables the playing of sound. If you call the function passing false, it will disable sound and any subsequent calls to PlayNamedSound will be be ignored. If you call the function passing true, it will enable sound and any subsequent class to PlayNamedSound will operate normally. The default is true.
1.5.1