Skip to content
Divyanshu0902Public

About

Stream Audio to multiple Bluetooth devices simultaneously

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

DuoAudio Banner

Latest Release Windows 11 WASAPI C++ and Node MIT License

Simultaneously stream Windows 11 system audio to two pairs of Bluetooth earbuds or headphones with zero configuration.

Download Installer (.exe) • App Interface • How It Works • Architecture • Quick Start


🖥️ Desktop Application Interface

Minimalist, Distraction-Free Experience

Windows natively supports outputting system audio to only one playback device at a time. DuoAudio provides a clean, dark-mode desktop interface engineered for speed, simplicity, and zero cognitive load:

  • Zero-Friction Setup: Select your two connected earbuds from the dropdowns and click Start Sharing.
  • Independent Volume Controls: Dedicated real-time sliders allow each listener to set their own comfortable listening level.
  • System Tray Integration: Minimizes cleanly to the Windows system tray to run quietly in the background without taskbar clutter.
  • Instant Visual Feedback: Clear visual indicators for active endpoints, connection status, and speaker muting state.
DuoAudio Desktop App Interface

🎧 How Dual Audio Streams Together

  • ⚡ Simultaneous Dual Output: Stream audio from any app (YouTube, Spotify, VLC, games, browser) to two separate Bluetooth earbuds or headphones with low latency.
  • 🎯 Zero-Configuration Routing: No manual Windows Sound settings tinkering. DuoAudio automatically detects your devices, sets up routing in the background, and restores your default headphones when you stop.
  • 🤫 Silent Room Protection: Automatically silences your laptop speakers during streaming so audio plays strictly inside both listeners' earbuds.
  • 🎚️ Independent Volume Control: Adjust volume levels for each listener independently right from the app with smooth software gain.
  • ⚡ Low Latency & High Fidelity: Direct 16-bit / 48 kHz linear PCM streaming built on Windows Core Audio (WASAPI).
  • 🔒 100% Offline & Private: Zero telemetry, no background network calls, completely open source under MIT.

⚙️ Architecture & Tech Stack

DuoAudio uses a decoupled, multi-process architecture to guarantee real-time audio throughput and UI responsiveness:

┌────────────────────────────────────────────────────────┐
│                      Windows OS                        │
│   (Media Players, Web Browsers, Games, System Sounds)   │
└──────────────────────────┬─────────────────────────────┘
                           │ WASAPI Loopback Capture
                           ▼
┌────────────────────────────────────────────────────────┐
│            DuoAudio Native Audio Engine                │
│                                                        │
│  ┌────────────────────────┐  ┌──────────────────────┐  │
│  │   Linear PCM Stream    │  │ Native C++ Helper    │  │
│  │   Ring Buffer (16/48k) │  │ (IPolicyConfig COM)  │  │
│  └───────────┬────────────┘  └──────────┬───────────┘  │
└──────────────┼──────────────────────────┼──────────────┘
               │ Independent Streams      │ Device Automation
               ▼                          ▼
    ┌──────────────────────┐   ┌──────────────────────┐
    │  Output 1 (Earbuds)  │   │  Output 2 (Earbuds)  │
    └──────────────────────┘   └──────────────────────┘
  • Audio Capture: Windows Audio Session API (WASAPI) shared-mode loopback capture with silence suppression compensation.
  • Endpoint Automation: Standalone native C++ helper (duoaudio_endpoint.exe) using undocumented Windows Core Audio COM interfaces (IPolicyConfig, IMMDeviceEnumerator) for rapid, silent endpoint switching and volume control without antivirus false-positives.
  • Buffer & Pacing: Dedicated ring buffer pacing per output stream with clock-drift resilience.
  • Desktop Shell: Electron 33 + React 19 + Vite, communicating with the audio worker via structured IPC and graceful shutdown supervisors.

🚀 Quick Start

  1. Download: Grab the latest DuoAudio Setup 1.0.2.exe.
  2. Connect Earbuds: Pair both Bluetooth earbuds/headphones with Windows.
  3. Launch & Share: Open DuoAudio, select your two devices in Output 1 and Output 2, and click ▷ Start Sharing.

🛠️ Building from Source

Prerequisites: Windows 11 (64-bit), Node.js (v22.x LTS), and MinGW GCC (g++).

# 1. Clone the repository
git clone https://github.com/Divyanshu0902/DuoAudio.git
cd DuoAudio

# 2. Install dependencies
npm install

# 3. Build UI bundle & compile native helper
npm run build:ui
scripts\build-native-helper.bat

# 4. Run the desktop app
npm start

📄 License

This project is licensed under the MIT License — see the LICENSE file for details.

About

Stream Audio to multiple Bluetooth devices simultaneously

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages