Creates a new sound system
- Parameters
-
maxSounds | Maximum number of soundfiles in the sound system |
void ClearSound |
( |
int |
index | ) |
|
Deletes the sound from the given index
- Parameters
-
index | Zero based index to clear |
void LoadSound |
( |
char * |
fn, |
|
|
int |
index |
|
) |
| |
Loads the sound from a file into a slot in the sound system
- Parameters
-
fn | The name of the file to load from |
index | The zero based index to load the file into |
void LoadSounds |
( |
char * |
firstArg, |
|
|
|
... |
|
) |
| |
Loads a number of sounds from files into the sound system The sounds are loaded sequentially starting at slot zero
- Parameters
-
firstArg | Filenames to load, followed by a NULL |
Plays the sound at the given index
- Parameters
-
which | The zero based index of the sound to play |
void Play |
( |
int |
which, |
|
|
float |
distance |
|
) |
| |
Plays the sound at the given index, attenuated for distancec
- Parameters
-
which | The zero based index of the sound to play |
distance | The distance in meters of the sound |
The documentation for this class was generated from the following file: