From 326db7e312b58c49783aafed209211835bc8ba9f Mon Sep 17 00:00:00 2001 From: oxmox Date: Wed, 18 Dec 2024 20:25:59 +0100 Subject: [PATCH] windows: spawn dooms with -nosound --- src/doompanning.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doompanning.cc b/src/doompanning.cc index 2304f9b..33b2d6e 100644 --- a/src/doompanning.cc +++ b/src/doompanning.cc @@ -131,7 +131,7 @@ inline void spawn_doom(ControllerContext &ctx) ZeroMemory(&pi, sizeof(pi)); char cmdLine[256]; - snprintf(cmdLine, sizeof(cmdLine), "%s", DOOM_EXECUTABLE); + snprintf(cmdLine, sizeof(cmdLine), "%s -nosound", DOOM_EXECUTABLE); // Start the child process. if (!CreateProcess(NULL, // No module name (use command line) @@ -239,7 +239,7 @@ void check_on_dooms(ControllerContext &ctx) } } while (pid > 0); #else -#warning "pid checking not implemented for Windows" +//#warning "pid checking not implemented for Windows" #endif // Find dooms that are in Endoom state and remove them. This works for