]> git.lizzy.rs Git - mt.git/blobdiff - sound.go
Add WaitGroup to SerializePkt
[mt.git] / sound.go
index 953677cc168ec9d52d3252571e83b448def46d59..913b0e162152922e0c8ae468ef9a0263ff165886 100644 (file)
--- 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