AudioStreamer
AudioStreamer copied to clipboard
I added some features into the AudioStreamer
- added a local file streaming support
- 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.
- fixed a bug: reset ivar stream to NULL, when openReadStream failed.
- remove a statement in -(void)stop, which will cause 'iuhw' error to audio queue when quickly stop streamer.
- a -(void)setVolume method
It's good job. But when i use your source code, streamer does wrong action about move position. Using progress bar, move the playing postion , then player will play wrong point.