mirror of
https://github.com/bloeys/wavy.git
synced 2025-12-29 09:28:19 +00:00
Ogg file support
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user