mirror of
https://github.com/bloeys/wavy.git
synced 2025-12-29 09:28:19 +00:00
Properly stream wav files+reduce effect of oto bug
This commit is contained in:
11
wavy_test.go
11
wavy_test.go
@ -113,6 +113,17 @@ func TestSound(t *testing.T) {
|
||||
}
|
||||
s.PlaySync()
|
||||
|
||||
//Streaming wav
|
||||
s, err = wavy.NewSoundStreaming(wavFPath)
|
||||
if err != nil {
|
||||
t.Errorf("Failed to load streaming sound with path '%s'. Err: %s\n", tadaFilepath, err)
|
||||
return
|
||||
}
|
||||
s.SeekToPercent(0.0)
|
||||
s.PlaySync()
|
||||
s.SeekToPercent(0.0)
|
||||
s.PlaySync()
|
||||
|
||||
//Ogg
|
||||
const oggFPath = "./test_audio_files/camera.ogg"
|
||||
s, err = wavy.NewSoundMem(oggFPath)
|
||||
|
||||
Reference in New Issue
Block a user