tumtumtum / StreamingKit

A fast and extensible gapless AudioPlayer/AudioStreamer for OSX and iOS (iPhone, iPad)
Other
2.43k stars 525 forks source link

Using multiple instances of STKAudioPlayer (and authenticated HTTP access) #90

Open ilTofa opened 10 years ago

ilTofa commented 10 years ago

For a project I need to fade (in and out) two http sources. I can do that with AVPlayers by having 2 AVPlayers, setting fade on both and have the second AVPlayer start play before the first ended (so that the first is fading out and the second in fading in). Can the same strategy be used with 2 STKAudioPlayer (or they are somewhat tied to be used only one at time)? I'm also assuming that I can someway fading the players (I'm using AVMutableAudioMix parameters with AVPlayers).

Also: can I use http(s) sources for the players (and may be authenticate the connection)? I understand this is not supported, an hint on where to work to add the ability is more than enough (I'll, of course, pull back the added source).

In any case, thank you for sharing the code (and for the library).

manderson-productions commented 10 years ago

I am also interested in this functionality. One possibility would be to support multiple mixerUnit node channels for the AUGraph, or the ability to 'inject' additional nodes into the graph...

sairamc commented 9 years ago

Thank you for providing the library and make the source code available. Any word on the implementation of this feature?

pavan6181 commented 9 years ago

I tried to implement it using two STKAudioPlayer audio players and by changing the gain values on the players using "setGain: forEqualizerBand:", but getting some pop or click sound based on the rate at which we are refreshing the gain values. Any help/suggestion is sincerely appreciated.