This commit is contained in:
5684185+vsariola@users.noreply.github.com
2026-01-28 21:22:57 +02:00
parent f88986dc64
commit 02a9d9747f
7 changed files with 359 additions and 147 deletions

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"
case AWeighting:
return "A-weighting"
case CWeighting:
return "C-weighting (LUFS)"
case NoWeighting:
return "No weighting (RMS)"
default:
return "Unknown"
}
}
type WeightingType int