![]() |
![]() ![]() ![]() |
FSOUND_SAMPLE * F_API FSOUND_Sample_Load(
int index,
const char *name,
unsigned int inputmode,
int memlength
);
index | Sample pool index. See remarks for more on the sample pool. 0 or above - The absolute index into the sample pool. The pool will grow as the index gets larger. If a slot is already used it will be replaced. FSOUND_FREE - Let FSOUND select an arbitrary sample slot. FSOUND_UNMANAGED - Dont have this sample managed within fsounds sample management system |
name | Name of sound file or pointer to memory image to load |
mode | Description of the data format, OR in the bits defined in FSOUND_MODES to describe the data being loaded. |
memlength | If FSOUND_LOADMEMORY is specified as a mode, then this value must contain the length in BYTES of the memory image being passed into the name field of the parameter list. Otherwise this value can be ignored and set to zero (for example if you were loading a file from disk). . |