开发者

Change music file Balance

Is there any way to change a music file Balance? for example I want to play a sound onl开发者_运维技巧y from left speaker(by default my sound file is playing in both speaker)


you should be able to control the so called panorama with setting the property 'pan' of your avaudioplayer instance.

look in the documentation for AVAudioPlayer... should be simple.

good luck


If you're looking to manipulate the sound at all, openAL is probably better. It's definitely faster to check the documentation of AVAudioPlayer and use the pan property, but openAL allows pan, gain, location, and balance, along with effects.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜