Ogg file support

This commit is contained in:
bloeys
2022-06-26 06:19:58 +04:00
parent 2d0f00175a
commit 989547c14e
6 changed files with 56 additions and 4 deletions

View File

@ -112,6 +112,15 @@ func TestSound(t *testing.T) {
return
}
s.PlaySync()
//Ogg
const oggFPath = "./test_audio_files/camera.ogg"
s, err = wavy.NewSoundMem(oggFPath)
if err != nil {
t.Errorf("Failed to load memory sound with path '%s'. Err: %s\n", oggFPath, err)
return
}
s.PlaySync()
}
func TestByteCountFromPlayTime(t *testing.T) {