A
1000
ACF_SOUNDS

DISABLE_LEGACY_ALERT_SOUNDS

##################################
# THE INSIDE SOUND SPACE
##################################

BEGIN_SOUND_SPACE
	SOUND_INDEX 0
	BLEND_DEPTH 0.03
	AABB -0.350 -0.4 -2.1 0.350 0.450 -0.1
END_SOUND_SPACE

##################################
# MIXER SNAPSHOTS
##################################

BEGIN_SOUND_ATTACHMENT
	SNAPSHOT_NAME /ducker
	EVENT_START_COND sim/time/total_flight_time_sec > 0
	EVENT_END_COND sim/time/total_flight_time_sec > 3
END_SOUND_ATTACHMENT

BEGIN_SOUND_ATTACHMENT
	SNAPSHOT_NAME /WA28_canopy_open
	PARAM_DREF_IDX 0
	EVENT_START_COND sim/flightmodel2/misc/canopy_open_ratio[0] > 0.0
	EVENT_END_COND sim/flightmodel2/misc/canopy_open_ratio[0] == 0.0
END_SOUND_ATTACHMENT

BEGIN_SOUND_ATTACHMENT
  SNAPSHOT_NAME /WA28_external_view
    EVENT_START_COND sim/graphics/view/view_is_external != 1
    EVENT_END_COND sim/graphics/view/view_is_external == 1
END_SOUND_ATTACHMENT

#################
# WIND SOUNDS
#################

BEGIN_SOUND_ATTACHMENT
	EVENT_NAME /WA28_airspeed_noise
	VEH_PART cockpit 0
	EVENT_START_COND sim/flightmodel/position/true_airspeed >= 1
	EVENT_END_COND sim/flightmodel/position/true_airspeed < 1
END_SOUND_ATTACHMENT

BEGIN_SOUND_ATTACHMENT
	EVENT_NAME /WA28_spoilers_out
	VEH_PART cockpit 0
	EVENT_START_COND sim/flightmodel2/controls/speedbrake_ratio > 0.1
	EVENT_START_COND sim/flightmodel/position/true_airspeed >= 1
	EVENT_END_COND sim/flightmodel2/controls/speedbrake_ratio < 0.1

END_SOUND_ATTACHMENT

#################
# TIRE ROLL SOUND
#################

BEGIN_SOUND_ATTACHMENT
	EVENT_NAME /WA28_ground_roll
	VEH_PART tire 0
	PARAM_DREF_IDX 0
	EVENT_ALLOWED_FOR_AI
	EVENT_START_COND sim/flightmodel2/gear/tire_rotation_speed_rad_sec[0] > 1
	EVENT_START_COND sim/flightmodel2/gear/on_ground[0] == 1
END_SOUND_ATTACHMENT


#################
# TIRE IMPACT SOUNDS
#################

BEGIN_SOUND_ATTACHMENT
	EVENT_NAME /WA28_touchdn
	VEH_PART tire 0
	PARAM_DREF_IDX 0
	EVENT_ALLOWED_FOR_AI
	EVENT_START_COND sim/flightmodel2/gear/total_deflection_rate[0] > 1
	EVENT_START_COND sim/flightmodel2/gear/tire_vertical_deflection_mtr[0] > 0
END_SOUND_ATTACHMENT


#################
# SPOILERS
#################

BEGIN_SOUND_ATTACHMENT
	EVENT_NAME /WA28_spoilers
	VEH_XYZ 2.005584 0.673608 1.2192
	EVENT_ALLOWED_FOR_AI
	EVENT_START_COND ABS_DELTA=sim/flightmodel2/controls/speedbrake_ratio > 0.1
	EVENT_START_COND ABS_DELTA=sim/flightmodel2/controls/speedbrake_ratio > 0.5
END_SOUND_ATTACHMENT

###############
# CANOPY SOUND
###############

BEGIN_SOUND_ATTACHMENT
	EVENT_NAME /WA28_rain_int
	VEH_PART cockpit 0
	EVENT_START_COND sim/weather/precipitation_on_aircraft_ratio != 0
	EVENT_END_COND sim/weather/precipitation_on_aircraft_ratio == 0
END_SOUND_ATTACHMENT

BEGIN_SOUND_ATTACHMENT
	 EVENT_NAME /WA28_canopy
	 VEH_XYZ -0.554736 0.070104 1.524
	 PARAM_DREF_IDX 0
	 EVENT_START_COND sim/cockpit2/switches/canopy_open[0] == 1
END_SOUND_ATTACHMENT

BEGIN_SOUND_ATTACHMENT
	 EVENT_NAME /WA28_canopy
	 VEH_XYZ -0.554736 0.070104 1.524
	 PARAM_DREF_IDX 0
	 EVENT_START_COND sim/cockpit2/switches/canopy_open[0] == 0
END_SOUND_ATTACHMENT

#################
# COCKPIT SOUNDS
#################

BEGIN_SOUND_ATTACHMENT
	EVENT_NAME /WA28_te_climb
	VEH_PART cockpit 0
	EVENT_START_COND sim/cockpit2/switches/total_energy_audio_on == 1
	EVENT_START_COND sim/cockpit2/electrical/battery_on[0] == 1
	EVENT_AUTO_END_FROM_START_COND
END_SOUND_ATTACHMENT

BEGIN_SOUND_ATTACHMENT
	EVENT_NAME /WA28_stall
	VEH_PART cockpit 0
	EVENT_START_COND ABS_DELTA=sim/cockpit2/annunciators/stall_warning_ratio != 0
	#EVENT_END_COND sim/cockpit2/annunciators/stall_warning_ratio == 0
END_SOUND_ATTACHMENT

BEGIN_SOUND_ATTACHMENT
	EVENT_NAME /WA28_gear
	VEH_XYZ 0 0 0
	EVENT_START_COND CMND=sim/flight_controls/landing_gear_toggle != 0
END_SOUND_ATTACHMENT

BEGIN_SOUND_ATTACHMENT
	EVENT_NAME /WA28_gear
	VEH_XYZ 0 0 0
	PARAM_DREF_IDX 0
	EVENT_START_COND custom/WA28/landing_gear_handle == 0
	EVENT_START_COND sim/flightmodel2/gear/deploy_ratio[0] > 0
	EVENT_START_COND sim/flightmodel2/gear/deploy_ratio[0] < 1
END_SOUND_ATTACHMENT

BEGIN_SOUND_ATTACHMENT
	EVENT_NAME /WA28_window
	VEH_XYZ 0 0 0
	PARAM_DREF_IDX 0
  EVENT_START_COND DELTA=sim/flightmodel2/misc/custom_slider_ratio[0] != 0
END_SOUND_ATTACHMENT

BEGIN_SOUND_ATTACHMENT
	EVENT_NAME /WA28_trim_sound
	VEH_XYZ 0 0 0
  EVENT_START_COND DELTA=sim/cockpit2/controls/elevator_trim != 0
END_SOUND_ATTACHMENT

###################
# SWITCHES SOUNDS
###################

BEGIN_SOUND_ATTACHMENT
	EVENT_NAME /WA28_clack
	VEH_PART cockpit 0
	EVENT_START_COND CMND=sim/flight_controls/glider_all_release != 0
END_SOUND_ATTACHMENT

BEGIN_SOUND_ATTACHMENT
	EVENT_NAME /WA28_click
	VEH_XYZ -0.115 -0.006 -2.380
	PARAM_DREF_IDX 0
	EVENT_START_COND ABS_DELTA=sim/cockpit2/electrical/battery_on[0] != 0
END_SOUND_ATTACHMENT

BEGIN_SOUND_ATTACHMENT
	EVENT_NAME /WA28_click
	VEH_PART cockpit 0
	EVENT_START_COND ABS_DELTA=sim/cockpit2/switches/total_energy_audio_on != 0
END_SOUND_ATTACHMENT

BEGIN_SOUND_ATTACHMENT
	EVENT_NAME /WA28_click
	VEH_PART cockpit 0
	EVENT_START_COND ABS_DELTA=sim/cockpit2/radios/actuators/com1_power != 0
END_SOUND_ATTACHMENT

BEGIN_SOUND_ATTACHMENT
	EVENT_NAME /WA28_click_soft
	VEH_PART cockpit 0
	EVENT_START_COND ABS_DELTA=sim/cockpit2/radios/actuators/com1_frequency_khz != 0
END_SOUND_ATTACHMENT
	
BEGIN_SOUND_ATTACHMENT
	EVENT_NAME /WA28_click_soft
	VEH_PART cockpit 0
	EVENT_START_COND ABS_DELTA=sim/cockpit2/radios/actuators/com1_frequency_Mhz != 0
END_SOUND_ATTACHMENT

BEGIN_SOUND_ATTACHMENT
	EVENT_NAME /WA28_click_soft
	VEH_PART cockpit 0
	EVENT_START_COND ABS_DELTA=sim/cockpit2/gauges/actuators/barometer_setting_in_hg_pilot != 0
END_SOUND_ATTACHMENT

