From f967a747e4ae01fba3a6c3fd693d0e753faf3ae4 Mon Sep 17 00:00:00 2001 From: anon5 Date: Tue, 22 Jun 2021 16:30:50 +0000 Subject: Add String methods to some types using stringer and fix some minor defects --- sound.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sound.go') 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 -- cgit v1.2.3