"music.unison.laser01"
{
	"channel"		"CHAN_STATIC"
	"soundlevel"	"SNDLVL_NONE"
	"volume"		"0.7"

	"wave"	"*music/unison/unison_music_l1.wav"
//	"wave"	"*music/beep_test_2sec_lp_01.wav"

	"soundentry_version" "2"
	"operator_stacks"
	{
		"start_stack"
		{
			"import_stack" "start_sync_to_entry"
			"elapsed_time"
			{
				"entry" "music.unison.ambient"
			}
			"duration_div"
			{
				"input2" "1"	
			}
		}


//		"start_stack"
//		{
//			"import_stack" "start_global_bpm_quantize"
//			"bpm"
//			{
//				"input2" "140"	
//			}
//			"beats"
//			{
//				"input2" "4"	
//			}
//		}

		"update_stack"
		{
			"import_stack" "p2_update_music_spatial_portals"
//			"import_stack" 	"update_music_spatial"
			"speakers_spatialize"
			{
				"input_radius"  "1024"
			}
//			"occlusion"
//			{
//				"input_scalar" "0.5"
//			}

		}
	}
}

"music.unison.laser02"
{
	"channel"		"CHAN_STATIC"
	"soundlevel"	"SNDLVL_NONE"
	"volume"		"0.8"

	"wave"	"*music/unison/unison_music_l2.wav"
//	"wave"	"*music/beep_test_2sec_lp_01.wav"

	"soundentry_version" "2"
	"operator_stacks"
	{
		"start_stack"
		{
			"import_stack" "start_sync_to_entry"
			"elapsed_time"
			{
				"entry" "music.unison.ambient"
			}
			"duration_div"
			{
				"input2" "1"	
			}
		}


//		"start_stack"
//		{
//			"import_stack" "start_global_bpm_quantize"
//			"bpm"
//			{
//				"input2" "140"	
//			}
//			"beats"
//			{
//				"input2" "4"	
//			}
//		}

		"update_stack"
		{
			"import_stack" "p2_update_music_spatial_portals"
//			"import_stack" 	"update_music_spatial"
			"speakers_spatialize"
			{
				"input_radius"  "1024"
			}
//			"occlusion"
//			{
//				"input_scalar" "0.5"
//			}

		}
	}
}


"music.unison.ambient"
{
	"channel"		"CHAN_STATIC"
	"soundlevel"	"SNDLVL_NONE"
	"volume"		"1"


	"wave"	"*music/unison/unison_music_ambient.wav"
//	 "wave"			"common/null.wav"
// 	"wave"			"npc/xray/beep.wav"

	"soundentry_version" "2"


	"operator_stacks"
	{

//		"start_stack"
//		{
//			"import_stack" "start_global_bpm_quantize"
//			"bpm"
//			{
//				"input2" "140"	
//			}
//			"beats"
//			{
//				"input2" "4"	
//			}
//		}

		"update_stack"
		{

			"import_stack" 	"update_music_stereo"

			"volume_fade_in"
			{
				"input_max" "6"
				"input_map_min" "0.05"
			}
			"volume_fade_out"
			{
				"input_max" "6"
			}
		}
	}
}

"music.unison.air"
{
	"channel"		"CHAN_STATIC"
	"soundlevel"	"SNDLVL_NONE"
	"volume"		"0.85"


	"wave"	"*music/unison/unison_music_air.wav"
//	 "wave"			"common/null.wav"
// 	"wave"			"npc/xray/beep.wav"

	"soundentry_version" "2"

	"operator_stacks"
	{
		"start_stack"
		{
			"import_stack" "start_sync_to_entry"
			"elapsed_time"
			{
				"entry" "music.unison.ambient"
			}
			"duration_div"
			{
				"input2" "1"	
			}
		}

//		"start_stack"
//		{
//			"import_stack" "start_global_bpm_quantize"
//			"bpm"
//			{
//				"input2" "140"	
//			}
//			"beats"
//			{
//				"input2" "4"	
//			}
//		}

		"update_stack"
		{
			"import_stack" 	"update_music_stereo"

			//"position_array"
			//{
			//	"input_entry_count" "1"
			//	"input_position_0[0]"   "-28.952826"
			//	"input_position_0[1]"   "1005.211365"
			//	"input_position_0[2]"   "660.529724"
			//}


			"volume_fade_in"
			{
				"input_max" "0.5"
			}
			"volume_fade_out"
			{
				"input_max" "1.5"
			}
			"import_stack" "update_stop_at_time"
			"usat_stop_time"
			{
				"input2" "6.15"
			}
		}

//ADD END HERE!!	
	}
}



//modified door sounds

"World.DoorRoundBlueOpen"
{
	"channel"		"CHAN_AUTO"
	"soundlevel"		"SNDLVL_85dB"
	"wave"		")plats/door_round_blue_open_01.wav"

	"soundentry_version" "2"

	"operator_stacks"
	{
		"start_stack"
		{
			"import_stack" 	"P2_poly_limiting_start"

			"limit_sound"
			{
				"input_max_entries" "1.000000"
				"match_entry" "World.DoorRoundBlue"
				"match_substring" "true"
			}
		}
	}
}

"World.DoorRoundBlueClose"
{
	"channel"		"CHAN_AUTO"
	"soundlevel"		"SNDLVL_85dB"
	"wave"		")plats/door_round_blue_close_01.wav"

	"soundentry_version" "2"

	"operator_stacks"
	{
		"start_stack"
		{
			"import_stack" 	"P2_poly_limiting_start"

			"limit_sound"
			{
				"input_max_entries" "1.000000"
				"match_entry" "World.DoorRoundBlue"
				"match_substring" "true"
			}
		}
		
		"update_stack"
		{
			"import_stack"	"p2_offset_start_update"
		
			"time_elapsed_trigger"
			{
				"input2" "0.5" //Elapsed time in seconds goes here.
			}
		
			"play_entry"
			{
				"entry_name" "World.DoorRoundBlueLock"	
			}
			
 			"speakers_multi_origin"
 			{
 				"input_max_iterations" "0"
 			}
		}
	}
}

"World.DoorRoundBlueLock"
{
	"channel"		"CHAN_AUTO"
	"soundlevel"		"SNDLVL_85dB"
	//"wave"		")plats/door_round_blue_lock_01.wav"
	"wave"		")test/silence_1sec_donotignore.wav"
	"volume"	"0"

	"soundentry_version" "2"

	"operator_stacks"
	{
		"start_stack"
		{
			"import_stack" 	"P2_poly_limiting_start"

			"limit_sound"
			{
				"input_max_entries" "1.000000"
				"match_entry" "World.DoorRoundBlue"
				"match_substring" "true"
			}
		}
	}
}

"World.DoorRoundBlueUnlock"
{
	"channel"		"CHAN_AUTO"
	"soundlevel"		"SNDLVL_85dB"
	//"wave"		")plats/door_round_blue_unlock_01.wav"
	"wave"		")test/silence_1sec_donotignore.wav"


	"soundentry_version" "2"

	"operator_stacks"
	{
		"start_stack"
		{
			"import_stack" 	"P2_poly_limiting_start"

			"limit_sound"
			{
				"input_max_entries" "1.000000"
				"match_entry" "World.DoorRoundBlue"
				"match_substring" "true"
			}
		}
		
		"update_stack"
		{
			"import_stack"	"p2_offset_start_update"
		
			"time_elapsed_trigger"
			{
				"input2" "0.35" //Elapsed time in seconds goes here.
			}
		
			"play_entry"
			{
				"entry_name" "World.DoorRoundBlueOpen"	
			}
			
 			"speakers_multi_origin"
 			{
 				"input_max_iterations" "0"
 			}
		}
	}
}

