SRBeep icon indicating copy to clipboard operation
SRBeep copied to clipboard

Appears to be broken with new OBS 29.1 update

Open wisq opened this issue 2 years ago • 8 comments

Immediately after the update, I no longer get any sounds. The DLLs are in place, and I copied in the latest release to be sure, but there's an error on load. The relevant log lines aren't particularly descriptive:

21:34:44.890: [obs-websocket] [obs_module_load] Linked ASIO Version: 101201
21:34:44.899: [obs-websocket] [obs_module_load] Module loaded.
21:34:44.901: Skipping module '../../obs-plugins/64bit/SDL2.dll', not an OBS plugin
21:34:44.902: LoadLibrary failed for '../../obs-plugins/64bit/SRBeep.dll': The specified module could not be found.
21:34:44.902:  (126)
21:34:44.902: Module '../../obs-plugins/64bit/SRBeep.dll' not loaded
21:34:44.904: [vlc-video]: VLC 3.0.12 Vetinari found, VLC video source enabled
21:34:44.909: ---------------------------------
21:34:44.909:   Loaded Modules:
21:34:44.909:     win-wasapi.dll
21:34:44.909:     win-dshow.dll
21:34:44.909:     win-capture.dll

compared to earlier the same day, before the update:

03:44:39.689: [obs-websocket] [obs_module_load] Linked ASIO Version: 101201
03:44:39.699: [obs-websocket] [obs_module_load] Module loaded.
03:44:39.705: Skipping module '../../obs-plugins/64bit/SDL2.dll', not an OBS plugin
03:44:39.715: [vlc-video]: VLC 3.0.12 Vetinari found, VLC video source enabled
03:44:39.729: ---------------------------------
03:44:39.729:   Loaded Modules:
03:44:39.729:     win-wasapi.dll
03:44:39.729:     win-mf.dll
03:44:39.729:     win-dshow.dll
03:44:39.729:     win-capture.dll
03:44:39.729:     vlc-video.dll
03:44:39.729:     text-freetype2.dll
03:44:39.729:     SRBeep.dll
03:44:39.729:     rtmp-services.dll
03:44:39.729:     obs-x264.dll

Full logs, in case those help: https://wisq-files.s3.amazonaws.com/obs-logs.zip

wisq avatar May 11 '23 04:05 wisq

Yes, that is right! hope it can be updated soon.

J4P032 avatar May 14 '23 16:05 J4P032

Bump broken here also.  This is my favourite OBS plugin, appreciate any efforts you can make when you have time.

Edit: here is a basic AutoHotkey script for people to use while we wait

  1. Install AutoHotkey if you don't already have it
  2. Bind hotkeys to start/stop record or stream in OBS
  3. Save below script in text editor with any filename as .ahk file extension, then double click the file (Replace "MButton"; "XButton1"; "XButton2" below with your binds):
; play recording started sound from file on specified key press
~XButton2::SoundPlay, C:\Program Files\obs-studio\data\obs-plugins\SRBeep\record_start_sound.mp3
return

; play recording finished sound from file on specified key press
~XButton1::SoundPlay, C:\Program Files\obs-studio\data\obs-plugins\SRBeep\record_stop_sound.mp3
return

...extended version with toggle ability:

; turn on by default when loading script
Toggle = 1

; toggle script on/off while active using scroll wheel click (and play system beeps to notify user)
~MButton::
if Toggle = 1
{
Toggle = 0
SoundBeep, 200, 20
SoundBeep, 200, 20
SoundBeep, 150, 350
}
else
{
Toggle = 1
SoundBeep, 200, 20
SoundBeep, 200, 20
SoundBeep, 1200, 350
}
return

; play recording started sound from file on specified key press
~XButton2::
if Toggle = 1
{
SoundPlay, C:\Program Files\obs-studio\data\obs-plugins\SRBeep\record_start_sound.mp3
}
return

; play recording finished sound from file on specified key press
~XButton1::
if Toggle = 1
{
SoundPlay, C:\Program Files\obs-studio\data\obs-plugins\SRBeep\record_stop_sound.mp3
}
return

...beep only version (no sound files required):

; turn on by default when loading script
Toggle = 1

; toggle script on/off while active using scroll wheel click (and play system beeps to notify user)
~MButton::
if Toggle = 1
{
Toggle = 0
SoundBeep, 200, 20
SoundBeep, 200, 20
SoundBeep, 150, 350
}
else
{
Toggle = 1
SoundBeep, 200, 20
SoundBeep, 200, 20
SoundBeep, 1200, 350
}
return

; play recording started sound using system beeps
~XButton2::
if Toggle = 1
{
SoundBeep, 800, 300
Sleep, 40
SoundBeep, 800, 300
Sleep, 40
SoundBeep, 800, 300
}
return

; play recording finished sound using system beeps
~XButton1::
if Toggle = 1
{
SoundBeep, 150, 300
Sleep, 40
SoundBeep, 150, 300
Sleep, 40
SoundBeep, 150, 300
}
return

eightbo avatar May 21 '23 09:05 eightbo

@adocilesloth @eebssk1

Hello. In fact, from what I've checked and tested, SRBeep v2.1.1 works fine up to OBS Studio v29.0.2.

However, with the first OBS-Studio-29.1 beta 1, it stops working.

Is it possible to re-edit the files and update it to make it work again?

RemixPL1994 avatar May 27 '23 17:05 RemixPL1994

I too can confirm the plugin has stopped working since updating to 29.1. [eebssk1] has suggested that we re-link the library but the instructions are patchy for newbies who don't edit source code for a hobby. Which dll needs modifying in Hex editor is still a mystery.

CRBRC217 avatar May 29 '23 16:05 CRBRC217

So I rebuilt the library against the latest OBS dependencies. FFMPEG has been updated and has depreciated a few things that were being used to play the sounds. I have a version that plays farty noises some of the time but nothing reliable, and certainly nothing like what it should sound like. I am not entirely sure where the noises (and lack there of) come from and don't really know enough about FFMPEG to chase the problem down.

I will admit that I am not hugely invested in getting this plugin working again as I don't stream or record anything anymore (and hence don't use OBS) and don't have a huge amount of time to commit to fixing it every time OBS breaks it. I know and appreciate that a lot of people like and use it and I am sorry to the people who have it and rely on it in their workflow.

I will leave this issue open (as it's unresolved) and may eventually get around to fixing it, or may not. The pre-29.1 source will stay up and open access, so if anyone feels inclined to fix the plugin, have at it.

adocilesloth avatar Jun 20 '23 17:06 adocilesloth

Thank you either way :)

CRBRC217 avatar Jun 21 '23 11:06 CRBRC217

SRBeep2 is now available.

Download from release section here(Only built for windows 64 yet). https://github.com/eebssk1/SRBeep2

eebssk1 avatar Jun 23 '23 12:06 eebssk1

Yeah, can you fix this or tell me what version of Obs can use. I'm a developer so if you can give me any advice at all. On upgrading my approach to fixing it... If it doesn't work I'll try and fix it today i've never did anything with O b s plugins But I'll go ahead and send the result if I can fix it.... Anything as I need to know where Error messages go. Or print statements.... As a thank, you for any help.... I make the biggest Blender 3D software add on in the world. I'll go ahead and send it if you use Blender....it's a $50 value