objective c - iOS: AudioUnit of current AVAudioPlayer -


i working on app uses avaudioplayer play audio file.thats working fine, want add equalizer presets.i have got presets value code

audiounitgetproperty(audiounit instance, kaudiounitproperty_factorypresets, kaudiounitscope_global, 0, &meqpresetsarray, &size); 

i can change audio unit property following line

aupreset *apreset = (aupreset*)cfarraygetvalueatindex(eqpresetsarray, 7); audiounitsetproperty(audiounit instance, kaudiounitproperty_presentpreset, kaudiounitscope_global, 0, apreset, sizeof(aupreset)); 

but problem not able audiounit of current player/avaudioplayer instance.

is there simple solution task?

thanks in advance!!!!

you take 1 step , use avplayer, add mtaudioprocessingtap.example code here


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -