Windows OBS plugin that stops replay buffer before system sleep and starts it again after resume if it had been running.
- Uses a hidden Win32 window to receive
WM_POWERBROADCAST. - Stops replay buffer on
PBT_APMSUSPEND. - Restarts replay buffer on
PBT_APMRESUMEAUTOMATICafter a short timer-based delay. - Only restarts if replay buffer was active before suspend.
The wake delay defaults to 2000 ms.
You can change it from OBS via:
Tools -> Replay Buffer Sleep Settings
Or edit the plugin config file directly:
[ReplayBufferSleep]
ResumeDelayMs=10000On Windows, the file should be here:
%APPDATA%\obs-studio\plugin_config\replay-buffer-sleep\settings.ini
The plugin logs the active delay on load.
- C++ for the small Qt settings dialog.
- Uses OBS frontend APIs for replay buffer control and the Tools menu dialog.
- Clears OBS's Windows sleep inhibition shortly after replay buffer starts.
| Platform | Tool |
|---|---|
| Windows | Visual Studio 17 2022 |
| Windows | CMake 3.30.5 |
An absolute bare-bones Quick Start Guide is available in the wiki.
GitHub Actions workflows are configured for Windows builds.
push: Run for commits or tags pushed tomasterormainbranches.pr-pull: Run when a Pull Request has been pushed or synchronized.dispatch: Run when triggered by the workflow dispatch in GitHub's user interface.build-project: Builds the actual project and is triggered by other workflows.check-format: Checks CMake and plugin source code formatting and is triggered by other workflows.
The workflows make use of GitHub repository actions (contained in .github/actions) and build scripts (contained in .github/scripts) which are not needed for local development, but might need to be adjusted if additional/different steps are required to build the plugin.
Successful builds on GitHub Actions will produce build artifacts that can be downloaded for testing. These artifacts are commonly simple archives and will not contain package installers or installation programs.
To create a release, push a semantic-version tag such as 0.1.0 to the default branch.