#57 - 取元件變動值



取slide bar “gain“ 的元件值

@IBAction func gain(sender: UISlider) {
var val = sender.value //這邊sender就是slide bar元件
println(String(format: "gain %f", val))
var filterParams = EQNode.bands[0] as AVAudioUnitEQFilterParameters
// filterParams.gain = val
EQNode.globalGain = val
}

留言