Thank you for your interest in contributing to DuoAudio! We welcome bug reports, feature requests, documentation improvements, and pull requests.
- Operating System: Windows 11 (64-bit)
- Runtime: Node.js (v22.x LTS recommended) and npm
- C++ Compiler: MinGW-w64 GCC (
g++) with C++17 support
# 1. Fork and clone the repository
git clone https://github.com/Divyanshu0902/DuoAudio.git
cd DuoAudio
# 2. Install dependencies
npm install
# 3. Compile native C++ helper
scripts\build-native-helper.bat
# 4. Build UI assets and start dev environment
npm run build:ui
npm run devBefore submitting a pull request, run the test suites to ensure zero regressions:
# Core unit & integration tests
node test/test_zero_config_default.js
node test/test_native_endpoint.js
node test/test_mute_lifecycle.js
node test/test_native_integration.js
node test/test_audio_resilience.js
node test/test_desktop_integration.js
# UI build check
npm run build:ui-
Native Helper (
duoaudio_endpoint.exe):- All Windows Core Audio COM interactions (
IPolicyConfig,IMMDeviceEnumerator) belong insrc/native/duoaudio_endpoint.cpp. - Never introduce PowerShell scripts (
.ps1) or runtime script compilation, as they trigger antivirus false-positives.
- All Windows Core Audio COM interactions (
-
Audio Runner Isolation:
- Real-time audio loopback capture and streaming logic runs in an isolated child process (
src/audio_runner.js), decoupled from Electron.
- Real-time audio loopback capture and streaming logic runs in an isolated child process (
-
Code Style:
- Clean, readable modern JavaScript (ES6+).
- Descriptive variable names, structured error handling, and zero swallowed exceptions.
- Create a feature branch:
git checkout -b feature/my-new-feature
- Commit your changes with clear, descriptive commit messages.
- Push to your fork and submit a Pull Request against
main. - Please describe your changes, testing steps, and Windows audio devices tested.