mirror of
https://github.com/vsariola/sointu.git
synced 2026-02-26 18:13:11 -05:00
drafting
This commit is contained in:
parent
f88986dc64
commit
02a9d9747f
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user