mattgallagher / AudioStreamer

A streaming audio player class (AudioStreamer) for Mac OS X and iPhone.
http://cocoawithlove.com
1.93k stars 553 forks source link

Pause action issue #35

Open emy88th opened 13 years ago

emy88th commented 13 years ago

Hello,

I would suggest the following scenario to test a bug:

  1. Hit play and wait for a few moments
  2. Hit pause - i implemented this action using the pause method in AudioStreamer - and wait a minute or two
  3. Hit the play button again to resume - theas means that the pause method gets called again - and wait a minute

The result will be a AS_STOPPING_EOF state. Even if it's still playing after the second hit play action, i traced that to be just remainings from a buffer. I can't though figure how to resolve this, any suggestions would be appreciated.

Thanks in advance!