AVAudioRecorder allows you to record external sound. However, I want to record the sound made by my application (through numerous AVAudioPlayers), is this possible on the iPhone?
If you want to record the sounds that the iOS application makes, you need to use an API with a lower level of leverage, such as Audio Unit RemoteIO or audio queues with raw PCM audio samples.