package main
import (
"github.com/dgorohov/sdl-bindings"
"github.com/dgorohov/sdl-bindings/audio/wav"
"log"
"os"
"path/filepath"
)
func main() {
sdl.Init(sdl.SDL_AUDIO)
defer sdl.Quit()
path, err := filepath.Abs(os.Args[1])
if err != nil {
panic(err)
}
log.Printf("Playing WAV: %s\n", path)
if err := wav.PlayWAV(path); err != nil {
panic(err)
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
Golang bindings for the WAV file playing
License
dgorohov/go-wav-sdl
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Golang bindings for the WAV file playing
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published