Microphone audio streaming from Cocoa mac app to iPhone

Posted by Benzamin on Stack Overflow See other posts from Stack Overflow or by Benzamin
Published on 2010-04-28T08:27:43Z Indexed on 2010/04/28 8:33 UTC
Read the original article Hit count: 492

Filed under:
|
|
|

Hi devs,

I'm trying to build a microphone audio streamer to iPhone. The server software will be a mac desktop app and the client will be iPhone, and they are connected via tcp port.

I've successfully connected the mac app and iPhone, and tried to send a fixed test.m4a audio file first. But at the iPhone i grabbed the data well, when tried to play it i used AVAudioPlayer and its returning OSStatus error. I played around with the audio queue service but its very tricky and i only got some example for fixed length audio playing like http://cocoawithlove.com/2009/06/revisiting-old-post-streaming-and.html

Now i need help on two things, how can i continuously grab audio data from Mac desktop microphone? And then after grabbing the data how i can play this unfixed length audio data in the iPhone. What exactly i need to do?

Please please help me on this......

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about iphone