Progressive download using Matt Gallagher's audio streamer

Posted by Fernando Valente on Stack Overflow See other posts from Stack Overflow or by Fernando Valente
Published on 2010-08-07T08:57:33Z Indexed on 2011/02/20 7:25 UTC
Read the original article Hit count: 621

I'm a completely n00b when talking about audio. I'm using Matt Gallagher's audio streamer on my radio app. How may I use progressive download? Also, ExtAudioFile is a good idea too :)

Edit:

Used this:

length = CFReadStreamRead(stream, bytes, kAQDefaultBufSize);            
if(!data)
    data =[[NSMutableData alloc] initWithLength:0];             
[data appendData:[NSData dataWithBytes:bytes length:kAQDefaultBufSize]];

Now I can save the audio data using writeToFile:atomically: NSData method, but the audio won't play. Also, if I try to load it on a AVAudioPlayer, I get an error.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about core-audio