DigitalDJ/AudioStreamer — pull request #19 by sprhawk (2011-12-10 06:55:12+00:00)
Title: I added some features into the AudioStreamer

1. added a local file streaming support
2. added prebuffer feature (with macro to turn it on/off). prebuffer song streaming into a buffer array, and start a new thread to push buffer into audio queue. I added it mainly for iOS. I encountered a situation, the network is not stable, if using CFReadStream, it requires the network is always reliable during playing. using prebuffer, all stream is burst buffered into a buffer array, it only needs a burst network access.
3. fixed a bug: reset ivar stream to NULL, when openReadStream failed.
4. remove a statement in -(void)stop, which will cause 'iuhw' error to audio queue when quickly stop streamer.