Noah Petherbridge
6d8aa387d7
* 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.
15 lines
338 B
Go
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")
|
|
)
|