PathEngine home previous: Interface iTestBednext: iTestBed::deleteRenderPreprocess()
Contents, API Reference, Interfaces, iTestBed, createSound



Loads a wav file into memory to be later played by iTestBed::playSound().


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.

Return Value

If the method fails then a value of -1 is returned, otherwise an index is returned that can be later passed in to iTestBed::playSound().


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.

See Also

Documentation for PathEngine release 6.03 - Copyright © 2002-2021 PathEnginenext: iTestBed::deleteRenderPreprocess()