ImixLoadSample

The ImixLoadSample function alows you to load samples from disk and memory.
int ImixLoadSample(
  char*  filename     // a pointer to a string containing filename
  DWORD  offset = 0   // offset from the beginning of the file
);

Parameters

filename
[Disk:] [path\] filename.ext of the sample.
[MEMORY] filestart filelength
Example
[MEMORY] 15435 14756
[MEMORY] 0x56785643 0x1A453
offset
Offset of the sample data from the beginning of the file.

Return Values

If the function succeeds, the return value is the sample handle.

If the function fails, the return value is -1.

Remarks

If the return value is -1 the file format is invalid or !Mixer ran out of free sample handles.