diff tests/test_audio.nim @ 1303:e0326aa067c8

fix: windows builds
author sam@sambook-windows.localdomain
date Wed, 07 Aug 2024 15:54:22 +0700
parents 3308b88e53a6
children df3c075e5dea
line wrap: on
line diff
--- a/tests/test_audio.nim	Tue Aug 06 23:43:27 2024 +0700
+++ b/tests/test_audio.nim	Wed Aug 07 15:54:22 2024 +0700
@@ -76,12 +76,11 @@
   test3()
 
   while mixer[].isPlaying():
-    discard mixer[].play("ping", track = "effects", stopOtherSounds = true, level = 0.5)
     # on windows we re-open stdin and this will not work
     when defined(linux):
+      discard mixer[].play("ping", track = "effects", stopOtherSounds = true, level = 0.5)
       echo "Press q and enter to exit"
       if stdin.readLine() == "q":
         mixer[].stop()
     elif defined(windows):
-      sleep(5)
-      mixer[].stop()
+      sleep(1000)
\ No newline at end of file