views:

43

answers:

0

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.