I’m looking to stream some audio files I have on my server to an iPhone-client application I’m writing. Some of the audio files can be rather large in size, even after compression. My question is, is there a Cocoa framework that helps me with buffering the audio so it becomes available to the user while the rest is being brought down the pipes? If not, can anyone point me in the right direction to learn more about the technologies required to make such a thing happen using Objective-C/Cocoa?
A definitive resource on buffering and compression of audio from a server<->client infrastructure would be ideal.
Brad mentioned a post that I wrote to stream audio via HTTP. That was this one: Streaming and playing an MP3. I don’t mean to be the person that links to his own blog but it does kind of address your question.
In regards to how hard the problem is to solve, you’ll notice I’ve made 4 updates to that post (way more than I’ve done for anything else), fixing threading errors, memory leaks and network buffering issues. There is a lot to get precisely correct.