Skip to content

Software mixer: channels, Slidr Mic, effects and switch sounds - #13

Merged
PalmarHealer merged 11 commits into
mainfrom
feature/mixer
Oct 31, 2026
Merged

PalmarHealer merged 11 commits into
mainfrom
feature/mixer

Conversation

@PalmarHealer

@PalmarHealer PalmarHealer commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

What this adds

A software mixer inside Slidr, similar to Elgato Wave Link, that works with or without the board (Windows only for now; see docs/mixer-plan.md).

  • Channels. Programs and microphones go into channels. Each channel has its own fader, mute and effects, and can be sent into a virtual microphone, the Slidr Mic (VB-CABLE), that voice chat apps use.
  • How programs are captured. Each program is captured on its own (process loopback). With "Replace original" on, Slidr also moves the program to a silent output, so you only hear Slidr's mix.
  • Playback. The mix plays on the Windows default output and follows it, so "Cycle output device" keeps working.
  • Effects. Each channel has an effect chain you build from a list, stack and reorder: parametric EQ with a curve editor, gate, compressor, normalizer and limiter. Built-in presets: voice, broadcast, music, night mode, movies & series, JBL-style. Your own EQ and effect presets can be renamed, exported, imported and deleted in Settings.
  • Board. Board sliders and buttons can drive channel levels, the level sent to the Slidr Mic, and mutes. The page follows board moves.
  • Switch sounds. Feedback sounds when switching things, in three sets (Tide, Grid, Grain) that you pick in Settings. They play only on your output, never into the Slidr Mic.
  • Settings.
    • Mixer devices card.
    • Sidebar tab order and visibility.
    • List or grid view for the Sliders and Buttons tabs.

Safety

  • Routing is always restored. Rerouted programs go back to their normal output when the mixer is switched off and when Slidr exits, including slidr --quit. A crash journal (mixer-routing.json) repairs routing on the next start.
  • No feedback loops. The silent output can never be the playback device or the Slidr Mic's cable, and the Slidr Mic's own cable is never recorded as a microphone.
  • Version bump. The version is now 0.5.0-dev, so a 0.4.0 build doesn't overwrite profiles that contain mixer settings.

Migration

  • Profiles from earlier mixer builds kept a fixed "Voice" strip. It becomes a "Microphone" channel once, with the same levels, effects and mute.
  • Board controls that drove the Voice strip now point at the new channel.

Testing

  • Unit tests. cargo test: 96 pass, 1 ignored.
  • Hardware test. The ignored test plays only on silent devices and is run by hand:
    SLIDR_TEST_MONITOR="Steam Streaming Speakers" SLIDR_TEST_MIC_OUT="Steam Streaming Microphone" \
    SLIDR_TEST_MIC="<your mic>" SLIDR_SOUND_DIR=C:\nonexistent \
    cargo test --bin slidr microphone_channel -- --ignored --nocapture
    
    In the last run the levels were right: input reached the Slidr Mic unchanged, and at 25 % fader it was −24.1 dB. The test still failed, because the microphone was silent (−96.7 dBFS) and the test checks that something was actually played.
  • Manual. Checked on Windows 11: Spotify and Firefox rerouted into channels, routing restored on quit, device switches, power on/off.
  • Not verified. The latest UI changes (Mixer devices card, startup without the power-on sound, sound-set preview) were not looked at or listened to before this PR.

Installer

VB-CABLE's package licence doesn't allow integrating it into another installer without VB-Audio's agreement. So the installer doesn't install it. Instead, its finish page names VB-CABLE (VB-Audio, www.vb-cable.com, donationware) and has an unchecked box that opens the download page. Both are hidden when the driver is already installed.

This finish page hasn't been compiled locally because makensis isn't available there. The release workflow will build it.

Not in this PR

  • Linux / PipeWire backend
  • Board actions that switch EQ or effects
  • LED conditions that react to the mixer

🤖 Generated with Claude Code

PalmarHealer and others added 11 commits October 30, 2026 14:53
…d Slidr Mic

Programs are captured per process (Windows process loopback), rerouted to
an output nobody hears, mixed with faders and EQ onto the headset, and the
real microphone plus selected channels go to a virtual cable that Discord
can use as its input. Mixer levels are software gain, so they also work
with microphones that ignore the Windows volume.

- src/mixer: DSP (biquad EQ, fader ramps, soft clip), ring buffers,
  engine, Windows I/O and per-program routing with a crash journal
- Mixer page in the UI with a program picker; mixer strips as slider
  targets and a "Mute mixer channel" button action
- Mixer layout per profile, devices in the global settings; off by default
- docs/mixer-plan.md, examples/loopback_poc.rs (the proof of concept)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The program scan (sessions, processes, routing; ~100 ms) ran on the thread
that feeds the headphones, which ran dry once a second and stuttered. A
control thread now does that work and tells a dedicated audio thread what
to capture. Dropping a capture no longer joins its thread. Glitch counters
are logged every 5 s while something goes wrong.

Mixer page: the Slidr Mic lists only virtual cables, by the name Discord
shows (playing into the cable's other end); the microphone list leaves
cables out; the silent output can't be the Slidr Mic's cable, which the
mixer also refuses on its own. Without a cable the hint offers a
VB-CABLE download.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Profiles and settings written by this branch carry mixer fields that 0.4.0
doesn't know. With the same version number the profile version guard let
0.4.0 save over them; a higher one makes it warn first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each channel and the voice now own their EQ bands instead of pointing at
a preset; presets only fill them. The editor draws the response curve
with draggable band handles and has a row per band (type, frequency,
gain, Q). Drags are heard live and saved on release.

A layout edit no longer resets levels set from the board; a board value
is only dropped when the page changes that same level.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each channel and the voice get a dynamics chain (gate → EQ → compressor →
normalizer → limiter), stereo-linked, each effect switchable on its own.
Parameter changes keep the effects' running state, so turning a knob
doesn't click. Edited in an effects popup next to the EQ.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A strip's effects are now an ordered chain: add effects from a list (the
same one several times if wanted), move them up and down, switch or
remove each. The EQ is one effect among them. Whole chains load from
built-in presets or ones the user saved (global, offered on every
profile). Settings from the fixed-order version carry over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…olish

- Switch sounds (mute, hear yourself, each effect, mixer power) play on the
  output only, read live from a folder while they are being designed; the
  switched thing fades over the sound's length (gain ramps, dry/wet
  crossfades, a bus fade on power on/off before programs are handed back).
- Master switch for a strip's whole effect chain.
- "Movies & series" and "JBL-style" chain presets.
- Devices: "Output", Slidr Mic and silent output under Advanced, the only
  cable picked automatically, Steam streaming speakers as the default
  silent output; no app named in the texts.
- Settings: sidebar tab order and visibility, switch sounds on/off and
  volume.
- Switches keep their width; "Into Slidr Mic" no longer rebuilds the card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lists

Mixer
- Microphones are channel sources (@mic:<device>) picked in a Programs /
  Microphones picker; the fixed voice strip becomes a "Microphone" channel
  once, and board controls that drove it follow.
- The mix plays on the Windows default output and follows it, so cycling
  outputs works with the mixer on. Output and microphone selectors are gone;
  Slidr Mic and silent output moved to Settings → Mixer devices (no "Not used"
  for the silent output).
- Channels can be collapsed and reordered by dragging; level readouts show the
  real value and follow board moves while the page is open.
- Sliders keep working for rerouted programs (sessions on every output).
- No silence when switching devices or powering off; programs are restored
  after the power-off fade. `slidr --quit` exits the normal way.
- Switch sounds: three sets (Tide, Grid, Grain) chosen in Settings, replace /
  mic sounds, the master effects switch clicks, the effects menu stays quiet,
  and no power-on sound when Slidr starts with the mixer on.

Settings
- My presets: rename, export, import and delete your EQ curves and effect
  chains; the EQ editor can save curves.
- Sliders and Buttons tabs as a list or a grid of cards.
- Consistent scrollbar spacing, aligned switches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sounds the mixer plays (power, mute, replace, mic, effects) are built in from assets/sounds/<set>/ instead of being read from ~/mixer-sounds. SLIDR_SOUND_DIR still points Slidr at a folder to tune them live.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The mixer's Slidr Mic needs a virtual cable. VB-CABLE's package licence doesn't allow integrating it into another installer without VB-Audio's agreement, so the finish page names it (VB-Audio, www.vb-cable.com, donationware) with an unchecked box that opens the download page. Both are hidden when the driver is already installed. The Mixer page hint now credits VB-Audio and mentions the restart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@PalmarHealer
PalmarHealer merged commit 95bd675 into main Oct 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant