How to add iPod EQ when playing audio with AVPlayer?

家住魔仙堡 提交于 2019-12-12 08:36:24

问题


I am able to play songs from iPod library using AVPlayer class. Now what I want to do is to insert equalizer to the audio produced.

Anybody has experienced in doing this?


回答1:


There is no way to play MPMediaItem and adding sound equalizer with AVPlayer. We have to use Audio Unit processing.




回答2:


I have done this leveraging a class provided in the Apple Samples:

http://developer.apple.com/library/ios/#samplecode/avTouch/Listings/Classes_CALevelMeter_h.html

Hope this helps.



来源:https://stackoverflow.com/questions/7485654/how-to-add-ipod-eq-when-playing-audio-with-avplayer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!