alexcrichton / AudioStreamer

A streaming audio player class (AudioStreamer) for Mac OS X and iPhone.
69 stars 22 forks source link

New features added: seekByDelta, fadeIn/OutDuration; validated project settings; added static lib target for iOS #27

Closed sdesimone closed 11 years ago

sdesimone commented 11 years ago

Thanks for the great work!

alexcrichton commented 11 years ago

How would these functions work in practice? It looks like you need to call fade out only at the time when the stream is about to end, and you'd call fade in right as the stream was created?

sdesimone commented 11 years ago

You can use them in different ways. Firstly, just as you mention. But also, e.g., to fade out the current song when the user taps a Stop button (instead of abruptly stopping sound); this could happen at any moment. Fade in can be used for cross-fading two streamers when the user taps a Next song button: [currentStreamer fadeOutDuration:10.0]; [newStreamer fadeInDuration:10.0]; [newStreamer start]; (after 10.0 secs the currentStreamer could be removed, also).

Hope this helps understanding those methods.

alexcrichton commented 11 years ago

Sounds good to me, thanks!