Item CreateInsTemplate (TagArg *tagList)
Item CreateInsTemplateVA (uint32 tag1, ...)
LoadInsTemplate()
, DefineInsTemplate()
, etc) to actually perform the template creation. Use it if you need to do something that these other functions don't provide.
Call UnloadInsTemplate()
to dispose of the Item created by this function.
AllocMem()
. If you supply a custom allocation function you must also provide a custom free function with AF_TAG_FREE_FUNCTION.
FreeMem()
. If you supply a custom free function you must also provide a custom allocation function with AF_TAG_ALLOC_FUNCTION.
CreateInsTemplate()
. Must use in conjunction with AF_TAG_IMAGE_LENGTH.
CreateSample()
for more information and caveats regarding this tag. This is potentially useful for ARIA instruments that contain large samples, but otherwise is not too helpful, mainly because you must leave the entire template file image in memory regardless of how little of that memory is actually used for samples. Defaults to FALSE. Mutually exclusive with AF_TAG_ALLOC_FUNCTION.
DeleteInsTemplate()
function, but there isn't one yet. Sorry for any confusion that might arise from pairing CreateInsTemplate()
with UnloadInsTemplate()
.
// These two calls are equivalent
LoadInsTemplate ("directout.dsp", 0);
CreateInsTemplateVA ( AF_TAG_NAME, "directout.dsp",TAG_END);
// These two calls are also equivalent
DefineInsTemplate (dspFileImage, dspFileLength, 0, "foo.dsp");
CreateInsTemplateVA ( AF_TAG_IMAGE_ADDRESS, dspFileImage,AF_TAG_IMAGE_LENGTH, dspFileLength, TAG_END);
UnloadInsTemplate
(),
LoadInsTemplate(),
DefineInsTemplate(),
Template,
CreateInstrument(),
LoadInstrument(),
AttachSample(),
AttachEnvelope()