ImixCreateSample

The ImixCreateSample function creates sample and returns the address of its buffer in its firat argument.
int ImixCreateSample(
  BYTE**  addr   // pointer to BYTE*. function returns buffer address in it
  DWORD  len     // length of buffer in samples
  WORD  freq     // default sample frequency 
  bool  _16BIT   // if sample is 16 bit
);

Parameters

addr
Function returns buffer address in it.
len
Length of buffer in samples (for 16 bit samples it is length_in_bytes / 2).
freq
Default sample frequency. Will be used by !Mixer if you don't set desired frequency explicitly.
_16BIT
Set this flag if you want a 16 bit sample.

Return Values

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

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

Remarks