我已尝试将持续时间的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)
有什么建议吗? 感谢