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

iTestBed::createSound()

Description

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

Syntax

int32_t createSound(const char* fileName, int32_t numberOfBuffers);
        

Parameters

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().

Remarks

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

iTestBed::playSound()
Documentation for PathEngine release 6.00 - Copyright © 2002-2016 PathEnginenext: iTestBed::deleteRenderPreprocess()