feat(tracker): enum-style values and menus to choose one option

This commit is contained in:
2026-01-31 13:57:09 +02:00
parent ca4b87d43d
commit 4bb5df9c87
19 changed files with 645 additions and 306 deletions
+14
View File
@@ -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