Skip to content

Instantly share code, notes, and snippets.

View Vaarelsauce's full-sized avatar
In that mode

Vinh Nguyen Vaarelsauce

In that mode
View GitHub Profile
snakecase / Beep on replay buffer save.lua
Last active July 15, 2024 04:05 — forked from upgradeQ/beep.lua
OBS Lua: Sound notification on replay buffer save [Windows]
local obs = obslua
local ffi = require("ffi")
local winmm = ffi.load("Winmm")
-- Put a sound of your choosing next to "Beep on replay save.lua" and don't forget to match its name either in code below or rename your file.
PROP_AUDIO_FILEPATH = script_path() .. "sound_npc_scanner_scanner_photo1.wav"
bool PlaySound(const char *pszSound, void *hmod, uint32_t fdwSound);