可以使用AVAudioPlayer制作均衡器吗? [英] can I use AVAudioPlayer to make an equalizer player?

查看:139
本文介绍了可以使用AVAudioPlayer制作均衡器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为音乐播放器制作一个均衡器,它可以进行一些EQ设置,例如低音和高音,并且我想通过设置频率来改变音乐效果.
250Hz 1000Hz 16000Hz .

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");

但是我找不到AVAudioPlayer的任何API来设置频率.有人可以帮助我吗?我将非常感谢.

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

推荐答案

我认为AVAudioplayer不支持均衡器效果,因此您需要为所有音频单元应用频段,但是使用STKAudioPlayer可以轻松实现.请参考以下链接,它将为您提供帮助.

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

这篇关于可以使用AVAudioPlayer制作均衡器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆