summaryrefslogtreecommitdiff
path: root/sound.go
diff options
context:
space:
mode:
Diffstat (limited to 'sound.go')
-rw-r--r--sound.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/sound.go b/sound.go
index 953677c..c662968 100644
--- a/sound.go
+++ b/sound.go
@@ -5,11 +5,13 @@ type SoundID int32
type SoundSrcType uint8
const (
- NoSrc SoundSrcType = iota
- PosSrc
- AOSrc
+ NoSrc SoundSrcType = iota // nowhere
+ PosSrc // pos
+ AOSrc // ao
)
+//go:generate stringer -linecomment -type SoundSrcType
+
type SoundDef struct {
Name string
Gain, Pitch, Fade float32