16 lines
395 B
Plaintext
16 lines
395 B
Plaintext
|
|
type soundfile [display="Sound File"]
|
||
|
|
{
|
||
|
|
u8 exists [ui, readonly, display="Exists"];
|
||
|
|
u8 sound_type [ui, readonly, display="Type"];
|
||
|
|
skip(2); // padding
|
||
|
|
|
||
|
|
// Sound union - either loaded_sound or streamed
|
||
|
|
// For loaded sound:
|
||
|
|
i32 sound_ptr [ui, readonly, display="Sound Ptr"];
|
||
|
|
|
||
|
|
// Parse inline loaded sound
|
||
|
|
if (sound_ptr == -1) {
|
||
|
|
loaded_sound = parse_here("loaded_sound");
|
||
|
|
}
|
||
|
|
}
|