SKAudioNode不会随着持续时间而淡化音量

时间:2016-05-10 22:01:38

标签: ios swift sprite-kit skaction skaudionode

我已尝试将持续时间的SKAudioNode音量淡化为0,但持续时间似乎没有影响,音频会立即停止:

    let fireAudio = SoundManager.sharedInstance.fire //SKAudioNode
    let stopAudio = SKAction.stop()
    let fadeVolume = SKAction.changeVolumeTo(0.0, duration: 3.0)
    let remove = SKAction.removeFromParent()
    let sequence = SKAction.sequence([fadeVolume, stopAudio, remove])
    fireAudio?.runAction(sequence)

有什么建议吗? 感谢

0 个答案:

没有答案