Microsoft DirectX 8.0 (C++) |
This section describes the organization of a chunk containing information about a DirectMusic script.
RIFF ( 'DMSC' <schd-ck> // Script header chunk [<guid-ck>] // GUID for script [<vers-ck>] // Optional version information [<UNFO-list>] // Name, author, copyright information, comments <scve-ck> // Version of DirectMusic <DMCN-form> // Container of content referenced by the script <scla-ck> // Scripting language <scsr-ck> or <DMRF> // Source code )
The header chunk contains flags in a DMUS_IO_SCRIPT_HEADER structure.
<schd-ck> -> schd( <DMUS_IO_SCRIPT_HEADER> )
For information on these three chunks, see Common Chunks.
This chunk describes the version of DirectMusic against which the script was authored.
<scve-ck> -> scve( <DMUS_IO_VERSION> )
For information on this chunk, see Container Form.
This chunk consists of a null-terminated string describing the scripting language.
<scla-ck> -> scla( <WCHAR>... )
The final chunk can contain the source code as a null-terminated array of WCHAR values.
<scsr-ck> -> scsr( <WCHAR>... )
Alternatively, the final chunk can be a Reference List chunk pointing to a text file containing the script code. The guidClassID member of the DMUS_IO_REFERENCE) must be GUID_NULL, because this text file is not a DirectMusic object.