r/coolgithubprojects • • 6h ago

[Beta] Virtual Jam (1.0.6-beta) — Open-source (GPLv3) low-latency rehearsal room in Rust for up to 8 musicians (Windows / macOS / Linux)

Post image

Hi everyone! I'm opening the 1.0.6-beta pre-release of Virtual Jam to external beta testers and would love feedback from musicians, audio nerds, and FOSS/Rust folks.

Repo & Quick Start: https://github.com/mielecarmine/Virtual-Jam-Hub
Downloads (1.0.6-beta): https://github.com/mielecarmine/Virtual-Jam-Hub/releases/tag/1.0.6-beta
License: GPL-3.0-or-later (with GPLv3 Section 7 additional permission for linking the Steinberg ASIO SDK on Windows; dependencies audited via cargo-deny).


Upfront disclosure on AI assistance

This project was built with AI assistance, and I want to be transparent about how it was used—because this is not casual "vibe-coding":

  • Strict architectural sandbox: AI agents operated inside a tightly defined specification (AGENTS.md + ticket-by-ticket scope) with non-negotiable real-time guardrails:

    • Zero heap allocations, zero locks (Mutex/RwLock), and zero syscalls/I/O inside cpal audio callbacks (enforced by dedicated zero-allocation tests).
    • Lock-free SPSC ring buffers (rtrb) and atomics only between audio, network, and UI threads.
    • UDP-only, zero-copy binary protocol (#[repr(C)], explicit little-endian, < 1400 B below MTU) with round-trip and malformed-input tests on every protocol change.
    • Per-peer isolation: independent adaptive jitter buffer and Opus decoder per musician.
  • Automated verification gates: Every ticket goes through PR CI (cargo fmt --check, cargo clippy --workspace -- -D warnings with clippy::pedantic, full unit/integration/load tests, and cross-platform installer smoke tests on Windows, macOS, and Linux).
  • Human architecture, review & hardware listening: Design decisions, protocol trade-offs, release gates, and real-world audio testing are human-directed. Automated tests cannot replace ears on real interfaces—which is exactly why I'm asking for beta testers now.

What Virtual Jam does

Virtual Jam lets up to 8 musicians rehearse together over UDP with:

  • Hybrid P2P + SFU routing: Clients join a lightweight headless Linux SFU (jam-server, < 200 µs forwarding target), automatically negotiate direct UDP P2P routes when possible, and fall back seamlessly to the SFU relay if a direct route drops.
  • Low-delay Opus (CELT, 2.5 ms frames, 48 kHz) with per-peer adaptive jitter buffers and PLC.
  • Personal headphone mix (egui): Per-musician gain (-60 to +6 dB), Mute, Solo, VU/peak meters, soft-clipping mixer, plus direct local monitoring with independent instrument + optional microphone channels and a network mic mute toggle.
  • Shared room metronome & Tempo Leader: Room clock sync + optional Tempo Leader phase compensation to help fight tempo drag when latency creeps past 20–25 ms.
  • Privacy first: Remote end-of-session technical reports are off by default (explicit opt-in) and never send audio or nicknames. Pre-release builds also write a local telemetry-*.txt file on your machine that you can inspect and optionally attach to a bug report.

Goals of this 1.0.6-beta pre-release

I'm specifically looking to validate things that CI and synthetic tests can't prove:

  1. Real audio hardware & driver compatibility: Windows (ASIO / WASAPI), macOS Apple Silicon (CoreAudio), and Linux (ALSA / PipeWire via ALSA) at 48 kHz and 64 / 128 / 256 frame buffers.
  2. Real-world latency & continuity: Hearing clicks, micro-dropouts, or drift across 5–30 minute sessions on real LANs, Wi-Fi, and WAN connections.
  3. Hybrid P2P vs. SFU fallback in the wild: How well direct hole-punching and fallback behave behind real home routers/NATs.
  4. Tempo Leader & shared metronome feel: Whether the phase compensation actually feels musical on real headphones.
  5. Onboarding & UX friction: Installer flow (.exe, .pkg, .deb, and standalone Linux server .tar.gz), device setup, and clarity of telemetry/error messages.

Honest beta limitations (please read before trying)

  • No public lobby / server yet: You need a LAN or self-hosted Linux jam-server (UDP 7777; one server = one room of up to 8 peers). You can also run a local hardware loopback (--seconds 30) without any server to test your interface.
  • No encryption or authentication yet: Intended for trusted bandmates on a trusted LAN or VPN—do not treat an exposed server IP as a private room.
  • Unsigned installers: SmartScreen (Windows) and Gatekeeper (macOS) will warn you. Checksums are provided in SHA256SUMS.txt, or you can build from source.
  • Platform gaps: macOS installer is ARM64 (Apple Silicon) only; Linux package is x64 .deb (glibc 2.35+). Wired headphones and 48 kHz interfaces are required.

If you give it a spin—even just a local loopback test or a 2-person LAN jam—I'd really appreciate a quick report via the Beta feedback issue template (success stories are just as useful as bug reports!).

Happy to answer any questions about the audio engine, protocol, or the AI-assisted workflow.

1 Upvotes

0 comments sorted by