Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix(windows): force-link uuid.lib in system-audio helper

Gabriel Steindaa080caf410
diff --git a/resources/windows-system-audio-helper.c b/resources/windows-system-audio-helper.c
index 08a218c11..937bea640 100644
--- a/resources/windows-system-audio-helper.c
+++ b/resources/windows-system-audio-helper.c
@@ -20,8 +20,8 @@
* fatal capture error. Injects silence while no application renders
* audio so the output timeline stays continuous.
*
- * Compile with: cl /O2 windows-system-audio-helper.c /Fe:windows-system-audio-helper.exe ole32.lib mmdevapi.lib
- * Or with MinGW: gcc -O2 windows-system-audio-helper.c -o windows-system-audio-helper.exe -lole32 -lmmdevapi
+ * Compile with: cl /O2 windows-system-audio-helper.c /Fe:windows-system-audio-helper.exe ole32.lib mmdevapi.lib uuid.lib
+ * Or with MinGW: gcc -O2 windows-system-audio-helper.c -o windows-system-audio-helper.exe -lole32 -lmmdevapi -luuid
*/
#define WIN32_LEAN_AND_MEAN
@@ -39,6 +39,16 @@
#include <stdlib.h>
#include <string.h>
+/* IID_IAudioClient, IID_IAudioCaptureClient, and
+ * IID_IActivateAudioInterfaceCompletionHandler are declared via
+ * MIDL_INTERFACE (__declspec(uuid)) in the SDK headers, so <initguid.h> does
+ * not emit their definitions in C mode — they live in uuid.lib. Force-link it
+ * here so the binary links regardless of the compile command line (the CI
+ * workflow's cl invocation can't be edited without a workflow-scoped token). */
+#ifdef _MSC_VER
+#pragma comment(lib, "uuid.lib")
+#endif
+
#if defined(__has_include)
#if __has_include(<audioclientactivationparams.h>)
#include <audioclientactivationparams.h>