2020-09-02 03:54:58 +00:00
|
|
|
// Package sound manages music and sound effects.
|
2020-05-23 03:07:48 +00:00
|
|
|
package sound
|
|
|
|
|
2020-09-02 03:54:58 +00:00
|
|
|
import "path/filepath"
|
2020-05-23 03:07:48 +00:00
|
|
|
|
2020-09-02 03:54:58 +00:00
|
|
|
// Package globals.
|
2020-05-23 03:07:48 +00:00
|
|
|
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")
|
|
|
|
)
|