1

AVAudioRecorder allows the recording of external audio. However I wish to record the audio made by my application (through numerous AVAudioPlayers), is this possible on the iPhone?

vikingosegundo
  • 52,040
  • 14
  • 137
  • 178
Draco
  • 262
  • 5
  • 12
  • possible duplicate [Record and play audio Simultaneously](http://stackoverflow.com/questions/4215180/record-and-play-audio-simultaneously) – Black Frog Apr 15 '11 at 00:12
  • The applications allows the user to play sounds by pressing numerous buttons. I like to record the sounds the user makes with these buttons so they can play it back. – Draco Apr 15 '11 at 02:30
  • I need the same I you found please let me know. – Johnykutty Mar 05 '12 at 23:18

1 Answers1

5

If you want to record the sounds your iOS app makes, you have to use a much lower lever API, such as Audio Unit RemoteIO, or Audio Queues with raw PCM audio samples.

hotpaw2
  • 70,107
  • 14
  • 90
  • 153
  • Can you provide a link to where I can learn more about this technique? – Draco Apr 15 '11 at 02:32
  • Google is your friend here. for remoteIO there is a very simple tone generator example from ' cocoa with love ' blog. for audio queues there is a nice simple tutorial on the ' trails in the sand ' blog, but you will have to dig for it a bit. – P i Dec 10 '11 at 13:58