Skip to content

Conversation

@sprhawk
Copy link

@sprhawk sprhawk commented Dec 10, 2011

  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

@neogates
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants