move LoopMode
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user