can I use AVAudioPlayer to make an equalizer player?

天涯浪子 提交于 2019-12-12 01:29:01

问题


I want to make an equalizer for music player,which can do some EQ setting like bass and treble,and I want to change the music effect by setting the frequency.
250Hz, 1000Hz, 16000Hz.

(void)setEQ:(@"250Hz");
(void)setEQ:(@"1000Hz z");
(void)setEQ:(@"16000Hz");

But I can not find any API of AVAudioPlayer to set frequency.Can anyone help me? I will be very grateful.


回答1:


i think AVAudioplayer is not support for Equalizer Effect, for this you need to apply bands for all audio units but by using STKAudioPlayer u can achieve it easily. refer following link it will help you.

https://github.com/tumtumtum/StreamingKit



来源:https://stackoverflow.com/questions/37202675/can-i-use-avaudioplayer-to-make-an-equalizer-player

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