record: keep a track per audio source and let the review mute them

The recorder put every source on one mixer track, so the file had one audio
stream and the review screen could not tell the game's sound from the
microphone or from Discord.

The daemon now gives each source a track: 1 for the game, 2 for the
microphone, then one per application in the settings, up to OBS's six. Every
track above the first gets an audio encoder and the output is told which
tracks to write, which is what libobs's muxer reads to lay the streams out in
track order. The timeline's new `audio_tracks` names what each stream holds,
with empty names for the tracks no source fed.

The app opens one player per stream, copied out of the clip into the audio
cache, and the transport carries a toggle per channel. A channel that is off
is neither heard nor kept: clip and highlight exports mix only the tracks
left on. Recordings made before this change have one stream and play as they
did.
This commit is contained in:
vhaudiquet committed 2026-11-19 18:37:20 +01:00
1 parent 4f2ee4256a
commit eabc3780c9
13 files changed
+545 -46

No files matched your search

+7 -3
View File
@@ -89,12 +89,16 @@ reading (`history::tests`), highlight clipping (`highlight::tests`) and formatti
6. Game review: done. The clip fills the window at 16:9, with play/pause, +/-10 s, and a
scrubber that marks every event; highlights (play, export) and the timeline sit in a side
panel, one press away. ffmpeg exports each highlight.
7. OS integration: tray icon with open/hide/record/quit, launch at login through the Run key,
7. Audio channels: the recorder writes one audio stream per source, and the review screen opens
one player per stream (`export::extract_tracks` copies each into the audio cache). Toggles
under the transport mute a channel for listening, and clip and highlight exports mix only
the channels left on. Recordings made before the split play as one mixed track.
8. OS integration: tray icon with open/hide/record/quit, launch at login through the Run key,
single instance, and toasts on recording start and stop.
8. Installer: `packager.toml` targets NSIS and copies the daemon and its OBS files beside the
9. Installer: `packager.toml` targets NSIS and copies the daemon and its OBS files beside the
exe. `cargo install cargo-packager --locked && cargo packager --release`. The installer has
not been run on a clean VM yet.
9. Parity: `tauri-app` is still in the tree. Delete it once the items above are verified on a
10. Parity: `tauri-app` is still in the tree. Delete it once the items above are verified on a
machine with a live League Client.
### Known gaps