Commit Graph
16 Commits
Author SHA1 Message Date
vhaudiquet 365e4ad732 record-daemon: keep app audio attached across recordings
OBS starts with the daemon and builds one scene, and every recording reuses it.
The process captures that used to be created per recording stay in that scene, so
a game or Discord window that disappears mid-session keeps feeding the mix.

The captures come from a watcher that scans for a window every two seconds: a
process with no window cannot be opened, so each source waits for its app to show
one, and a new window means the process restarted and needs a fresh source.

Settings now travel to the engine, and an audio change swaps only the device
captures. Applying them used to clear the scene, which took the process captures
with it.
2026-11-16 23:26:31 +01:00
vhaudiquet 2953ab1ee3 record-daemon: give the audio sources the window OBS reads
Recordings came back silent apart from the microphone. win-wasapi's
process capture looks a window up from one setting, "window", a string
of title, class and executable joined by colons; the video source got
that string, the audio sources got "executable", "title" and "class" as
separate keys, which the plugin never reads. Both sources therefore had
nothing to hook, and the game and Discord tracks were empty.

window_string builds the value the plugin expects, escaping ':' and '#'
the way libobs decodes them, so a title with a colon in it still splits
into three fields. The game source asks for the League window by
executable, and an application source asks for its process the same way.

Checked against a recording: a process source for a browser playing a
loop now opens the loopback device for it, where before the plugin
logged "Failed to find window" for every audio source but the mic.

OBS's own log now goes into the daemon log under the obs target. A
daemon started in the background has no console, so its warnings about
a hook that never landed or a device that vanished were being thrown
away, and those are the lines that explain a silent track.
2026-11-16 22:20:47 +01:00
vhaudiquet 2e98159083 fix: apply audio volumes, enumerate real devices, remove dead code
- Audio sources were created but never added to the scene, so mic,
  game and app audio never reached the output; all sources are now
  added with their configured volume via obs_source_set_volume
- getAudioDevices enumerates real WASAPI devices again instead of
  returning hardcoded defaults (the crash-isolation bypass)
- Recording module split: encoder selection and output building move
  to their own files; obs_context shrinks from 1556 to 464 lines
- Remove unused IPC (recordings/timeline/export commands), the
  CommandHandler trait, crash marker files, and the stats plumbing
  that was never wired to the frontend
- Deduplicate the LCU reconnect logic into connect_and_listen
2026-11-13 00:06:16 +01:00
vhaudiquet 4f9f84446d feat: add custom audio sources
- Add capture_apps list of AudioSourceConfig (application, deviceOutput
  or deviceInput) to AudioSettings, serialized in the settings JSON
- Add IPC commands getAudioDevices, addAudioSource, removeAudioSource
  and updateAudioSource
- obs_context builds wasapi sources for the microphone and configured
  apps alongside the game-capture source
- Settings.vue gains an audio sources tab with device dropdowns and
  per-source volume
- getAudioDevices temporarily returns hardcoded defaults while the
  WASAPI enumeration crash is investigated; crash marker files around
  IPC and native call sites are part of that investigation
2026-11-12 23:17:26 +01:00
vhaudiquet 3279948e78 fix: enable audio capture 2026-05-16 22:27:33 +02:00
vhaudiquet 2814d85b6b record-daemon: refactor client.rs, dropping metadata
record-daemon / Build, check and test (push) Successful in 2m17s
2026-03-26 11:03:24 +01:00
vhaudiquet c576ac2b34 record-daemon: fix build and features on windows
record-daemon / Build, check and test (push) Failing after 56s
2026-03-25 19:42:21 +01:00
vhaudiquet f81eff8496 record-daemon: fmt, clippy
record-daemon / Build, check and test (push) Successful in 2m12s
2026-03-25 11:07:36 +01:00
vhaudiquet f90e549b1e record-daemon: add game start and end metadata
record-daemon / Build, check and test (push) Successful in 2m9s
2026-03-24 18:16:53 +01:00
vhaudiquet 6ac2fe9cd3 record-daemon: refactor encoder detection logic
record-daemon / Build, check and test (push) Failing after 11m31s
2026-03-21 19:10:32 +01:00
vhaudiquet 8e885ffc64 record-daemon: obs-context refactoring, gpu detection code
record-daemon / Build, check and test (push) Failing after 48s
2026-03-21 18:54:01 +01:00
vhaudiquet 5121a46533 record-daemon: fix linux builds
record-daemon / Build, check and test (push) Failing after 55s
record-daemon / Build Windows (xwin) (push) Has been skipped
2026-03-21 13:40:10 +01:00
vhaudiquet 8143610dad record-daemon: fix failing test 2026-03-21 00:39:04 +01:00
vhaudiquet 03e36d0f1b record-daemon: refactor and cleanup 2026-03-21 00:05:46 +01:00
vhaudiquet 1166424c29 record-daemon: fix obs recording 2026-03-20 20:34:44 +01:00
vhaudiquet d6c0334369 record-daemon: initial commit 2026-03-19 17:48:07 +01:00