# HG changeset patch # User sam # Date 1688837395 -25200 # Node ID 77ae1f34a4e33773d78d7180495c6b3446f05a51 # Parent 81949dafd8f436e1cd1e72a07728a139d9c91244 fix: no sound on windows release builds diff -r 81949dafd8f4 -r 77ae1f34a4e3 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) =