How can I implement Equalizer in my iPhone applica

2019-06-10 02:50发布

问题:

I am Developing the iPad app which has Equalizer functionality,which means sound play on three properties( Low, High, Medium). I googled it and found this link: iPhoneMixerEQGraphTest

Its basically mixes the sound but I want to apply equalizer effects on my sound. Please help.

回答1:

Have a look at the Audio Unit Component Services Reference documentation. Specifically:

kAudioUnitType_Effect = 'aufx',

and Effect Audio Unit Subtypes:

enum {
   kAudioUnitSubType_PeakLimiter          = 'lmtr',
   kAudioUnitSubType_DynamicsProcessor    = 'dcmp',
   kAudioUnitSubType_Reverb2              = 'rvb2',
   kAudioUnitSubType_LowPassFilter        = 'lpas',
   kAudioUnitSubType_HighPassFilter       = 'hpas',
   kAudioUnitSubType_BandPassFilter       = 'bpas',
   kAudioUnitSubType_HighShelfFilter      = 'hshf',
   kAudioUnitSubType_LowShelfFilter       = 'lshf',
   kAudioUnitSubType_ParametricEQ         = 'pmeq',
   kAudioUnitSubType_Delay                = 'dely',
   kAudioUnitSubType_Distortion           = 'dist',
   kAudioUnitSubType_AUiPodEQ             = 'ipeq',
   kAudioUnitSubType_NBandEQ              = 'nbeq'
};