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
Post a Comment