views:

719

answers:

3

With the AVAudioPlayer, can I stream live audio from my microphone?

If so, how would I do this?

+1  A: 

No.

AVAudioPlayer only can play audio files.

Depending on what you're trying to accomplish, you might want to look into AudioQueues and the aurioTouch example from Apple's sample code

qrunchmonkey
For example, it would be like a mega phone.Right when I would speak into the mic, it should come out the speaker. Would i use AudioQueues for that?
Daniel Kindler
+1  A: 

With AudioQueues you'll always have a slight delay when filling up the buffer, AudioUnits would be the way to go as you can work with sound instantly.

pjaspers
And take a look at : http://developer.apple.com/samplecode/SimplePlayThru/listing2.html
pjaspers
+1  A: 

Just as pjapers said. You should use AudioUnits