ImixAttachModuleInstruments
The ImixAttachModuleInstruments function allows you to share samples/instruments
banks between several modules. It replases samples and intruments of the target module with
samples and intruments from the source module. If your modules have the same samples, it
is a good idea to reduce installation package size by creating a single module (sample
bank) containing only samples and modules without samples but with tracks.
bool ImixAttachModuleInstruments(
int targehandle, // module, that recieves samples & instruments
int sourcehandle, // module, that supplies samples & instruments
);
Parameters
- targehandle
- this module will recieve samples and instruments
- sourcehandle
- this module will supply smaples and instruments
Return Values
If the function succeeds, the return value is true.
If the function fails, the return value is false.
Remarks
The module, that is currently beeing playing can't recieve samples. You must stop it
first.
The samples aren't copied. Reference counter is used instead. Samples will be unloaded
automatically after all modules that use them are unloaded.