Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I added some features into the AudioStreamer #19

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

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