1

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 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...

Community
  • 1
  • 1
Mehul Mistri
  • 15,037
  • 14
  • 70
  • 94

1 Answers1

2

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

Helge Becker
  • 3,219
  • 1
  • 20
  • 33
  • This will not help..It will create on Recorded sound not along with the backgroud music....Thanks for help... – Mehul Mistri Jun 07 '11 at 04:53
  • AH you want to mix them. Have a look at this answer: http://stackoverflow.com/questions/5714719/how-to-mix-sound-files-of-different-format-using-ffmpeg – Helge Becker Jun 09 '11 at 12:47