doodle/pkg/sound/sound.go
Noah Petherbridge 6d8aa387d7 WIP Game Settings Window, WASM Fixes, Sound FX
* Add sound effect and music support to Doodle.
* Fix WASM build to use the 'null' sound driver for now.
* Add a Settings button to the main menu; UI for it is WIP.
2020-09-01 20:54:58 -07:00

15 lines
338 B
Go

// Package sound manages music and sound effects.
package sound
import "path/filepath"
// Package globals.
var (
// If enabled is false, all sound functions are no-ops.
Enabled bool
// Root folder on disk where sound and music files should live.
SoundRoot = filepath.Join("rtp", "sfx")
MusicRoot = filepath.Join("rtp", "music")
)