|PathEngine home||previous: ||next: |
Loads a wav file into memory to be later played by
int32_t createSound(const char* fileName, int32_t numberOfBuffers);
|filename||A C string with the name of the file to open.|
|numberOfBuffers||The number of secondary buffers to create for this sound. The number of buffers decides the number of instances of this sound that can be played simultaneously.|
If the method fails then a value of -1 is returned,
otherwise an index is returned that can be later passed in to
If no path is specified then the testbed's working directory will be searched.
This will be the directory the testbed was run from.
A relative or absolute path may be specified as part of the filename.
Relative paths will interpreted as relative to the testbed's working directory.
The file must be a valid wav file.
|Documentation for PathEngine release 6.00 - Copyright © 2002-2016 PathEngine||next: |