English 中文(简体)
sample iphone code for delay and echo
原标题:

Does anyone know where i can find sample code to apply processing to audio to simulate an echo or delay effect? I am currently using AVAudioPlayer to play samples and would like to layer the effects on top. All of the references I have seen so far are very generic and related to Audio Units.

问题回答

The reason that it is difficult to find sample code for this is that avaudioplayer is not really meant for effects. If you are dealing with the sample buffers directly (as in audio units), then it is a much more straight forward process, see https://github.com/mazbox/ofxmarek/blob/master/mareklib/audio/effects/DigitalDelay.h

I don t have sample code for doing echos with avaudioplayer, but the approach would be to fire off a few players at decreasing volumes at some fixed time interval. That would give you a delay effect, but it wouldn t be very complex.





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签