Perhaps you can find some code in "ferito blue flag" app? I saw something in there like this... might be what you need..:Yea the sounds are pretty loud in hindsight. I'll release a small update with the softened sounds that you can manually replace inside the snd folder first. For now I can't find the functions that allow me to check which session it is, but it should be easy to implement if they're available. Great tip about the default cfg will include in the next version!
# get shared memory info
sim_info_obj = sim_info.SimInfo()
#ac.log("session_type is %d" % (sim_info_obj.graphics.session))
raceSession = sim_info_obj.graphics.session == sim_info.AC_RACE
#raceSession = True
if raceSession: