Repository navigation
Prepare the backend for other systems (no change on Windows) - #8
Open
NickMarcha wants to merge 1 commit into
Open
NickMarcha wants to merge 1 commit into
NickMarcha wants to merge 1 commit into
Conversation
Audio, the Discord IPC connection and engine downloads now have shared code plus a small backend per system (Windows: WASAPI, named pipes, the current engine zips; elsewhere: stubs that return errors). Windows behavior is unchanged. Linux compiles and passes the shared tests, so a Linux port only has to fill in its backends. - audio: recording threads, start handshake, WAV writing and the level test are shared and tested against a fake backend - discord_rpc: framing and the whole RPC session run on any stream; tested against a fake Discord on an in-memory stream - engine: per-system asset table, executable and library names, driver check; Settings only offers engines the system can download - CI: test.yml runs the frontend tests and the backend tests on Windows and Linux for every PR; engine_check.py reads the new asset table - drop the unused cpal dependency Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch has not been deployed
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.
First step toward Linux (CachyOS first) and later macOS. Windows behavior should be unchanged; everything tied to a system now sits behind a small seam, so a Linux PR only adds its own backend files.
What moved
src-tauri/src/audio/):mod.rsholds what's shared (the two recording threads, the start handshake, the level test),wav.rswrites WAVs and pads silence to wall-clock time. A backend haslist_devicesandcapture(source, stop, track).windows.rsis the old WASAPI code;unsupported.rsreturns errors.src-tauri/src/discord_rpc/ipc/): framing and handshake are shared and run on any stream. A backend only opens the connection (windows.rs: named pipes) and checks whether Discord is running. The RPC session inclient.rsno longer has Windows-only gates.engine.rs):asset(kind)per system,server_exe/is_engine_fileuse the system's suffixes,gpu_driversreplaces the System32 check inlib.rs, unix permissions are set on unpack.engine_status_commandgainsavailable, and Settings only offers those engines.engine_check.pyreads the newassettable (checked: same URLs and hashes as before).cpaldependency.Tests
.github/workflows/test.ymlruns the frontend tests pluscargo teston Windows and Ubuntu for every PR. I checked the Linux build locally in arust:1.91container.Before merging: check by hand on Windows
Hardware isn't covered by the tests.
🤖 Generated with Claude Code