comparison tests/test_audio.nim @ 1139:114f395b9144

did: finish refactoring and updated all tests accordingly
author sam <sam@basx.dev>
date Sat, 08 Jun 2024 14:58:25 +0700
parents a4aa9f374d44
children
comparison
equal deleted inserted replaced
1138:02e1d2658ff5 1139:114f395b9144
60 60
61 while mixer[].IsPlaying(): 61 while mixer[].IsPlaying():
62 sleep(1) 62 sleep(1)
63 63
64 proc test3() = 64 proc test3() =
65 mixer[].AddSound("toccata et fugue", loadAudio("toccata_et_fugue.ogg")) 65 mixer[].AddSound("toccata et fugue", LoadAudio("toccata_et_fugue.ogg"))
66 mixer[].AddSound("ping", NewSound(SineSoundData(500, 0.05, 44100))) 66 mixer[].AddSound("ping", NewSound(SineSoundData(500, 0.05, 44100)))
67 mixer[].AddTrack("effects") 67 mixer[].AddTrack("effects")
68 discard mixer[].Play("toccata et fugue") 68 discard mixer[].Play("toccata et fugue")
69 69
70 70