mirror of
https://github.com/vsariola/sointu.git
synced 2026-02-12 11:13:03 -05:00
feat(tracker): enum-style values and menus to choose one option
This commit is contained in:
parent
ca4b87d43d
commit
4bb5df9c87
@ -65,6 +65,20 @@ func (v *detectorWeighting) SetValue(value int) bool {
|
||||
func (v *detectorWeighting) Range() RangeInclusive {
|
||||
return RangeInclusive{0, int(NumWeightingTypes) - 1}
|
||||
}
|
||||
func (v *detectorWeighting) StringOf(value int) string {
|
||||
switch WeightingType(value) {
|
||||
case KWeighting:
|
||||
return "K-weighting (LUFS)"
|
||||
case AWeighting:
|
||||
return "A-weighting"
|
||||
case CWeighting:
|
||||
return "C-weighting"
|
||||
case NoWeighting:
|
||||
return "No weighting (RMS)"
|
||||
default:
|
||||
return "Unknown"
|
||||
}
|
||||
}
|
||||
|
||||
type WeightingType int
|
||||
|
||||
|
||||
Reference in New Issue
Block a user