# HG changeset patch # User sam # Date 1688837395 -25200 # Node ID 00f3fa3fbc6d7a793fb7a291c28e3ba5ea610f4e # Parent e9c9777d354db9f2429b032ae8e6168a4bd34a86 fix: no sound on windows release builds diff -r e9c9777d354d -r 00f3fa3fbc6d src/semicongine/platform/windows/audio.nim --- a/src/semicongine/platform/windows/audio.nim Sat Jul 08 21:06:26 2023 +0700 +++ b/src/semicongine/platform/windows/audio.nim Sun Jul 09 00:29:55 2023 +0700 @@ -37,7 +37,7 @@ proc writeSoundData*(soundDevice: var NativeSoundDevice, buffer: int) = while (soundDevice.buffers[buffer].dwFlags and WHDR_DONE) == 0: - discard + echo "" # ugly solution to prevent code elimination, need to find a nicer solution checkWinMMResult waveOutWrite(soundDevice.handle, addr soundDevice.buffers[buffer], UINT(sizeof(WAVEHDR))) proc closeSoundDevice*(soundDevice: var NativeSoundDevice) =