DRSSound is a mod for Assetto Corsa by sffraser uploaded in 2018. Since then, the mod stopped working on newer versions of AC and on non-windows machines, with no fix coming from the original author.
Having some mediocre Python knowledge, I came up with a fix that should solve most issues.
Wait so what does this mod do in the first place?
(taken from original post)
This app will give you an audio cue for when the DRS is available, as well as a sound for the DRS flap opening. The same system is in the F1 games, and I wanted to bring it over to Assetto Corsa.
Having an audio cue is much more accurate than guessing when you cross the line, and easier than keeping an eye for a visual cue (extremely helpful for colorblind users, since the enabled/disabled colors can be too similar).
Changelog:
3.0
The original mod used the default Python module winsound, which comes preinstalled with Python. For reasons unbeknownst to me, AC doesn't want to load it, plus there's the obvious problem of module straight up not working for non-Windows users even if it did work.
What I did instead is use the playsound library, which not only works natively on OS-X and Linux, but can also be neatly packaged with the mod itself.
I did not make this mod!!
What I did was fix it for modern versions of AC, as well as Linux and Mac users. All other credit goes to sffraser!
Having some mediocre Python knowledge, I came up with a fix that should solve most issues.
Wait so what does this mod do in the first place?
(taken from original post)
This app will give you an audio cue for when the DRS is available, as well as a sound for the DRS flap opening. The same system is in the F1 games, and I wanted to bring it over to Assetto Corsa.
Having an audio cue is much more accurate than guessing when you cross the line, and easier than keeping an eye for a visual cue (extremely helpful for colorblind users, since the enabled/disabled colors can be too similar).
Changelog:
3.0
- What? A volume slider??
- That's right, for the price of one update, you get not one, not two, but THREE volume sliders! One for each sound and one master volume.
- They're accessible from the Content Manager app settings
- Going past 100% volume is not recommended due to possible clipping
and hearing loss, but the option is there if you want to.
- Changed both available and activation sounds
- Available beep is the same, but made to resemble the F1 games' DRS beep
- Activation sound is taken from RaceRoom, making it sound like a DRS mechanism
- Both sounds have been made much louder as per the request of many
- Old activation sound is still available in the files which brings me to-
- Added the option to easily switch to a custom sound
- Within the same Content Manager app settings as the volume sliders, you can set your own custom beep and activation sounds, whether you want the old sounds back or want something completely different.
- New sounds MUST be format .wav
- Fixed conflict with Brake Trainer (thanks @diez1978 for letting me know! : D)
- Fixed bug where Python couldn't find module
winsound
- Fixed bug where app wouldn't work on non-Windows machines [!UNTESTED!]
- Lowered volume of both DRS available and DRS open sounds
- With Content Manager
- Drag .zip into CM
- click the dropdown menu (three green lines) and click install
- Go to SETTINGS/ASSETTO CORSA/APPS and enable Python Apps (if you haven't already) and the DRSSound mod itself
- This mod doesn't have any UI, so it's enabled automagically upon startup
- (optional) if you want to change the sounds to your own custom sounds, paste the files into the app's folder and rename them. Files must be .wav format!
- Without Content Manager
- Open the .zip file
- extract the
apps
folder into your game's directory (assettocorsa
) - Go to Settings/General/UI Modules and enable DRSSound
- This mod doesn't have any UI, so it's enabled automagically upon startup
- (optional) if you want to change the sounds to your own custom sounds, paste the files into the app's folder and rename them. Files must be .wav format!
The original mod used the default Python module winsound, which comes preinstalled with Python. For reasons unbeknownst to me, AC doesn't want to load it, plus there's the obvious problem of module straight up not working for non-Windows users even if it did work.
What I did instead is use the playsound library, which not only works natively on OS-X and Linux, but can also be neatly packaged with the mod itself.
I did not make this mod!!
What I did was fix it for modern versions of AC, as well as Linux and Mac users. All other credit goes to sffraser!