AudioStreamer icon indicating copy to clipboard operation
AudioStreamer copied to clipboard

I added some features into the AudioStreamer

Open sprhawk opened this issue 13 years ago • 1 comments

  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.
  5. a -(void)setVolume method

sprhawk avatar Dec 10 '11 06:12 sprhawk

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.

neogates avatar Mar 23 '12 23:03 neogates