SimpleAudioEngine方法playEffect参数

[[SimpleAudioEngine sharedEngine] playEffect:@"gunfire.mp3" pitch:0.5f pan:0.5f gain:0.5f ];

pitch:高音,范围是[0.5~2.0],1.0是正常值。
pan:立体效果,范围是[-1.0~1.0],小于0增强左声道,大于0增强右声道,0.0是正常值。
gain:音量,范围是[0.0以上],1.0是正常值。

你可能感兴趣的:(SimpleAudioEngine方法playEffect参数)