我尝试使用此代码实现。 https://gist.github.com/hotpaw2/630a466cc830e3d129b9
let toneOutputUnit = ToneOutputUnit()
toneOutputUnit.enableSpeaker()
toneOutputUnit.setToneTime(t: 1)
toneOutputUnit.setFrequency(freq: 1000)
toneOutputUnit.setToneVolume(vol: 0.5)
toneOutputUnit.startToneForDuration(time: 1)
但没有向左或向右平移的功能(我只想向左平移100%,向右平移100%)
pan命令在哪个类中?