diff tests/test_audio.nim @ 854:48a2ac8bec07

did: some more audio functionality, some unfinished grid-mesh code
author Sam <sam@basx.dev>
date Tue, 26 Dec 2023 15:16:34 +0700
parents 754835bf175e
children ffc265916415
line wrap: on
line diff
--- a/tests/test_audio.nim	Sat Dec 09 01:06:58 2023 +0700
+++ b/tests/test_audio.nim	Tue Dec 26 15:16:34 2023 +0700
@@ -14,10 +14,11 @@
   let s2 = mixer[].play("test2", loop=true)
 
   let t0 = now()
+  mixer[].setLevel(0.5)
   while true:
     let runtime = (now() - t0).inMilliseconds()
     if runtime > 1500:
-      mixer[].setLevel(0.1)
+      mixer[].setLevel(0.2)
     if runtime > 3000:
       mixer[].stop(s2)
     if runtime > 6000:
@@ -72,9 +73,9 @@
 
 when isMainModule:
   startMixerThread()
-  test1()
+  # test1()
+  # mixer[].stop()
+  # test2()
+  # mixer[].stop()
+  test3()
   mixer[].stop()
-  test2()
-  mixer[].stop()
-  # test3()
-  # mixer[].stop()