move LoopMode

This commit is contained in:
Drew Weymouth
2023-12-22 16:01:56 -08:00
parent d9eca8d807
commit de6ba5c120
4 changed files with 41 additions and 66 deletions
-21
View File
@@ -57,15 +57,6 @@ type Status struct {
PlaylistPos int
}
// The playback loop mode (LoopNone, LoopAll, LoopOne).
type LoopMode int
const (
LoopNone LoopMode = iota
LoopAll
LoopOne
)
type ReplayGainMode int
const (
@@ -92,15 +83,3 @@ func (r ReplayGainMode) String() string {
return "no"
}
}
func (l LoopMode) String() string {
switch l {
case LoopNone:
return "no"
case LoopAll:
return "all"
case LoopOne:
return "one"
}
return "UNKNOWN_LOOP_MODE"
}