This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local obs = obslua | |
local ffi = require("ffi") | |
ffi.cdef[[ | |
void Beep(int freq,int dur); | |
]] | |
function beep() | |
ffi.C.Beep(7000,300) | |
end |
A simple Lua script which plays a .wav sound whenever specified keybind was activated.
Originally script was specified only for Replay Buffer save event and it works not on Save button press, but when replay was saved in file. So there was delay between press and sound effect.
Now you can launch sound not on event, but on keybind, which solves delay problem.
-
Download script and change PROP_AUDIO_FILEPATH to a path to the sound of your choosing. By default it's Windows Hardware Remove sfx
-
Launch OBS -> Tools -> Scripts -> +