| Miles Sound System SDK 7.2a |
The function AIL_extract_DLS extracts and decompresses the DLS data from a loaded MLS file or merged XMIDI file.
S32 AIL_extract_DLS( void const * data, U32 size, void * *XMI, U32 *XMI_size, void * *dls, U32 *dlssize, AILLENGTHYCB callback ); |
1, if the call was successful, or 0 if the call failed.
This function returns copies of the XMIDI and DLS data - that is, you must call AIL_mem_free_lock on the returned XMIDI and DLS pointers. If you want to obtain direct pointers to the XMIDI and DLS chunks inside the original file image, you can use the AIL_find_DLS function.
A good way to decide whether to use AIL_extract_DLS or AIL_find_DLS is whether the DLS data is compressed. If the data is uncompressed, then you can pass it directly to AIL_DLS_load_memory, so AIL_find_DLS can be used. If the data is compressed, then you must decompress it with AIL_extract_DLS before handing it off to AIL_DLS_load_memory. You can determine whether the data is compressed or not with the AIL_file_type function.
Group:
Utility Services
Related Functions:
AILLENGTHYCB, AIL_DLS_load_file, AIL_DLS_load_memory, AIL_compress_DLS, AIL_extract_DLS, AIL_file_type, AIL_filter_DLS_with_XMI, AIL_find_DLS, AIL_mem_free_lock, AIL_merge_DLS_with_XMI
Related Basic Types:
S32, U32, void *, void const *
Related FAQs:
How do I play an XMIDI file with a DLS instrument set?
For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.