Repository navigation
Software mixer: channels, Slidr Mic, effects and switch sounds - #13
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).Safety
slidr --quit. A crash journal (mixer-routing.json) repairs routing on the next start.Migration
Testing
cargo test: 96 pass, 1 ignored.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
makensisisn't available there. The release workflow will build it.Not in this PR
🤖 Generated with Claude Code