FSOUND_SAMPLE * F_API FSOUND_Sample_Alloc(
int index,
int length,
unsigned int mode,
int deffreq,
int defvol,
int defpan,
int defpri
);
index | Sample pool index. See remarks for more on the sample pool. 0 or above - The absolute index into fsounds 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 fsound free this sample upon FSOUND_Close |
length | The length in of the sample buffer in SAMPLES. |
mode | Bitfield describing various characteristics of the sample. Valid parameters are described in FSOUND_MODES. |
deffreq | Default frequency for this sample. |
defvol | Default volume for this sample. |
defpan | Default pan for this sample. |
defpri | Default priority for this sample. |