comparison tests/test_audio.nim @ 868:252cbc10b25f

did: improve/refactor some of the material API
author Sam <sam@basx.dev>
date Wed, 03 Jan 2024 11:19:55 +0700
parents 48a2ac8bec07
children 545b4c58601f
comparison
equal deleted inserted replaced
867:8fd450acc6f8 868:252cbc10b25f
71 discard mixer[].play("ping", track="effects", stopOtherSounds=true, level=0.5) 71 discard mixer[].play("ping", track="effects", stopOtherSounds=true, level=0.5)
72 discard stdin.readLine() 72 discard stdin.readLine()
73 73
74 when isMainModule: 74 when isMainModule:
75 startMixerThread() 75 startMixerThread()
76 # test1() 76 test1()
77 mixer[].stop()
78 test2()
79 mixer[].stop()
80 # test3()
77 # mixer[].stop() 81 # mixer[].stop()
78 # test2()
79 # mixer[].stop()
80 test3()
81 mixer[].stop()