如何快速平移声音

时间:2019-02-10 04:30:03

标签: ios swift audio

我尝试使用此代码实现。 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命令在哪个类中?

0 个答案:

没有答案