XAP File Format: Sound Entry

Parent: Cue

Note    There are two types of sound entries, complex non-interactive entries, and interactive entries.

Syntax

Sound Entry  (complex, non-interactive)
{
Name = string;
Index = #;
Weight Min = (BYTE)#;
Weight Max = (BYTE)#;
}

Sound Entry  (interactive)
{
Name = string;
Index = #;
Variable Min = (float)#;
Variable Max = (float)#;
Linger = 0/1;
}

Elements

Complex, Non-Interactive

Element Type Comment
Name Number Name of sound
Index Number Sound offset in soundbank
Weight Min Number (Byte) Random range (Min)
Weight Max Number (Byte) Random range (Max)

Interactive

Element Type Comment
Name String Name of sound
Index Number Sound offset in soundbank
Variable Min Number (Float) Variation active when its controlling variable is in this range (Min)
Variable Max Number (Float) Variation active when its controlling variable is in this range (Max)
Linger Boolean 0/1 1: Play currently chosen variation as long as its controlling variable is in range, 0: Choose a new variation every time the controlling variable changes