开发者

Combine two audio files together and play them in iPhone

开发者 https://www.devze.com 2023-03-11 03:59 出处:网络
I do not want any code but want to get a reference about my question mentioned below... There is background music available and there is recording option in my app...

I do not want any code but want to get a reference about my question mentioned below...

There is background music available and there is recording option in my app...

Once I start recording , application开发者_JAVA技巧 records my sound and when play button clicks , It will play the recording along with the background music...

I had use this Link but can not get as I want...

I think there is a mechanism like merging two audio files and make it one before playing....

How can I achieve this by coding... Is there any reference link or any sample code available?

Thnx in advance...


Most people mistake the one instance of AVAudioPlayer as the unit that plays the sound directly, but it doesnt. Mixing is done by the OS, not by the instance of AVAudioPlayer. With other words: No one says you can't have more then one AVAudioPlayer.

Create one for you background and let it play. Create another instance of AVAudioPlayer for you recorded sound and let it play. Voila

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号