在类型属性的Apple文档中,给出了以下代码:structAudioChannel{staticletthresholdLevel=10staticvarmaxInputLevelForAllChannels=0varcurrentLevel:Int=0{didSet{ifcurrentLevel>AudioChannel.thresholdLevel{//capthenewaudioleveltothethresholdlevelcurrentLevel=AudioChannel.thresholdLevel}ifcurrentLevel>AudioChannel.maxInputL