diff tests/test_audio.nim @ 394:728426157221

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 b145a05c2459
children ffc265916415
line wrap: on
line diff
--- a/tests/test_audio.nim	Sat Dec 09 01:07:12 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()