Looping sounds+get volume+pause all+resume all

This commit is contained in:
bloeys
2022-06-25 23:56:05 +04:00
parent 60913cdfa1
commit a9eccbcb91
2 changed files with 95 additions and 10 deletions

View File

@ -87,8 +87,11 @@ func TestSound(t *testing.T) {
s2 := wavy.CopyInMemSound(s)
s2.SetVolume(0.25)
s.PlaySync() //Already finished, should not play
s2.PlaySync() //Should play from beginning
//Already finished, should not play
s.PlaySync()
//Should play from beginning
s2.PlaySync()
//Test seek and play
s2.SeekToPercent(0.2)