Files
voice-cat/clients/windows/README.md

19 lines
1.1 KiB
Markdown
Raw Normal View History

# Windows client — placeholder
Built in **M4** (see [`docs/roadmap.md`](../../docs/roadmap.md)). C# / .NET 8+, consuming
`libvoicecat` through the C ABI ([`core/include/voicecat.h`](../../core/include/voicecat.h)).
Planned shape (see [`docs/architecture.md`](../../docs/architecture.md) §4 and
[`docs/tech-stack.md`](../../docs/tech-stack.md) §2):
- A .NET solution with a P/Invoke interop layer over the C ABI using **`LibraryImport`**
(source-generated, .NET 7+). Build `libvoicecat` as a **shared library**
(`-DVOICECAT_BUILD_SHARED=ON`) so the DLL sits beside the app.
- The `on_event` callback marshaled as a function pointer (`[UnmanagedCallersOnly]`) to avoid
delegate-lifetime issues; keep the interface "chunky" to minimize managed↔native crossings.
- UI in **WinUI 3** (most native) or **Avalonia** (if a single C# desktop UI is wanted later).
- Audio (capture/playback, WASAPI loopback for `SCREEN_AUDIO`) is handled inside the core; the
C# layer only drives device selection, meters, and the VAD/PTT + per-user NR controls.
Nothing here yet — the core must reach M2 (working voice) before the GUI is worth building.