XAP File Format: Track

Parent: Sound

Syntax

Track
{

Volume = #;
	
// Zero or more RPC Curves
RPC Curve Entry
{
}

// One or more events
// Events must be in timestamp order, except for relative events
// which must be placed after the event they are relative to. Note that relative
// events do not need to immediately follow the event they are relative to, 
// they just need to be after   
	
// Zero or one "Play" event
Play Wave Event
{
}
	
Play Wave From Offset Event
{	
}
	
Play Wave Variation Event
{
}
	
Play Sound Event
{
}
	
// Zero or more stop events
Stop Event
{
}
	
// Zero or more branch events
Branch Event
{
}
	
// Zero or more wait events
Wait Event
{
}
	
// Zero or more set effect param events
Set Effect Param
{
}

// Zero or more set variable events
Set Variable Event
{
}
	
// Zero or more set pitch events
Set Pitch Event
{
}
	
// Zero or more set volume events
Set Volume Event
{
}
	
// Zero or more marker events
Set Marker Event
{
}
	
// Zero or more set variable recurring events
Set Variable Recurring Event
{
}

// Zero or more set marker recurring events
Set Marker Recurring Event
{
}

// Clip entries are currently not supported.
Clip Entry
{
}

}

Elements

Element Type Comment
Volume Number (-9600 to 0, Default 0)
RPC Curve Entry Section (Zero or More)
Play Wave Event Section (Zero or One)
Play Wave From Offset Event Section (Zero or One)
Play Wave Variation Event Section (Zero or One)
Play Sound Event Section (Zero or One)
Stop Event Section (Zero or More, See Comments Above)
Branch Event Section (Zero or More, See Comments Above)
Wait Event Section (Zero or More, See Comments Above)
Set Effect Parameter Section (Zero or More, See Comments Above)
Set Variable Event Section (Zero or More, See Comments Above)
Set Pitch Event Section (Zero or More, See Comments Above)
Set Volume Event Section (Zero or More, See Comments Above)
Set Marker Event Section (Zero or More, See Comments Above)
Set Variable Recurring Event Section (Zero or More, See Comments Above)
Set Marker Recurring Event Section (Zero or More, See Comments Above)
Clip Entry Section Not supported.