sound-fader-ios 是一个 iOS 实用类,利用AvAudioPlayer 控制声音的减弱和退出,可以设置音量减弱的速度和持续时间,减弱速度可以是线性的,也可以是对数的。
AvAudioPlayer
app 样本: