<?xml version="1.0" encoding="UTF-8"?>
<oakxmlfile>
	<struct name="soun" trailing_data="true"> // 32 total bytes
        <ulong name="flags"/> // 4 bytes
        <short_enum name="loudness"><member text="Quiet" value="0"/><member text="Normal" value="1"/><member text="Loud" value="2"/><member text="Narration" value="3"/></short_enum>
        <fixed_fraction name="play_fraction"/>
        <short_fixed name="external_frequency_modifier"/>
        <short_fixed name="pitch_lower_bound"/>
        <short_fixed name="pitch_delta" lower_bound="pitch_lower_bound"/>
        <short_fixed name="volume_lower_bound"/>
        <short_fixed name="volume_delta" lower_bound="volume_lower_bound"/>
        <short name="first_subtitle_within_string_list_index"/>
        <byte count="8"/> //
        <tag name="subtitle_string_list_tag" group="stli"/>
        <short name="subtitle_string_list_index"/>
        <byte count="4"/>
        <long name="number_of_permutations"/>
        <substruct struct="sound_definition" name="sound_table" count="number_of_permutations"/> // 124 bytes--&gt;
        <!--byte count="22"/-->
        <!--long number_of_permutations, permutations_offset, permutations_size;
        struct sound_permutation_data *sound_permutations;

        short reference_count;
        word permutations_played_flags;
        unsigned long local_tick_last_played; // for theoretical disposing of least recently used sounds
        struct sampled_sound_header *sampled_sound_headers; // for the current encoding, NULL if not loaded-->
	</struct>
	<structedit struct="soun" layout="horizontal">
		<frame stretch="true">
			<!-- left column-->
			<frame text="General" layout="table" stretch="true">
				<row>
					<label text="Loudness:"/>
					<item target="loudness"/>
				</row>
				<row>
					<label text="Subtitle String List:"/>
					<item target="subtitle_string_list_tag"/>
				</row>
				<row>
					<label text="Subtitle String:"/>
					<item target="subtitle_string_list_index"/>
				</row>
			</frame>
			<frame text="Parameters" layout="table" stretch="true">
				<row>
					<label text="Play Fraction:"/>
					<item target="play_fraction"/>
				</row>
				<row>
					<label text="External Frequency Modifier:"/>
					<item target="external_frequency_modifier"/>
				</row>
				<row>
					<label text="Pitch:"/>
					<item target="pitch_lower_bound"/>
					<label text="to"/>
					<item target="pitch_delta"/>
				</row>
				<row>
					<label text="Volume:"/>
					<item target="volume_lower_bound"/>
					<label text="to"/>
					<item target="volume_delta"/>
				</row>
			</frame>
			<frame stretch="true">
				<frame text="Flags" layout="table" stretch="true">
					<row>
						<item target="flags" bit="0" text="Cannot Be Restarted"/>
					</row>
					<row>
						<item target="flags" bit="1" text="Can Occupy Multiple Channels"/>
					</row>
					<row>
						<item target="flags" bit="3" text="Cannot Be Obstructed By Media"/>
					</row>
					<row>
						<item target="flags" bit="6" text="All Permutations use the same subtitle"/>
					</row>
					<row>
						<item target="flags" bit="2" text="Stopped when source disappears"/>
					</row>
					<row>
						<item target="flags" bit="4" text="(Experemental) Is Ambient Background Loop"/>
					</row>
					<row>
						<item target="flags" bit="5" text="(Experemental) Is Ambient Random"/>
					</row>
				</frame>
			</frame>
		</frame>
		<!--frame text="Sounds">
			<item target="sound_table" text_target="sound_tag"/>
		</frame-->
		<label text="Sound Editor coming soon!"/>
	</structedit>
</oakxmlfile>
