Thx, so before starting the record, I used :
[audioManager setMode: kAMM_PlayAndRecord];
After this line, no more sounds can be played, but the record works.
When the record is over, I used this line to restore the sounds :
[audioManager setMode:kAMM_FxPlusMusicIfNoOtherAudio];
The ability to play and record at the same time is not absolutely necessary for what I'm trying to do, so this is an acceptable behaviour for me.
[edit] Ah, another thing, when there is a background music playing from the iPod application, and when the record starts, the music is stopped but it's not restored after. Is there a way to restore the music?
[edit2] When playing my own background music, it's automatically routed to the ear speakers when the record starts, and back to the main speaker when the record stops.
@Steve, do you understand why setting the mode of the audio manager to kAMM_PlayAndRecord makes the sounds not playing anymore ? In "PlayAndRecord" there is "Play" too, so that's why I'm confused.