I'm having issues with the AudioStreamer which is driving me crazy. I have a tableview with songs from a remote server. When I click on a song it stream fine, but if I tap too fast I get multiple instance of AudioStreamer playing different songs.
I heard that making AudioStreamer a singleton will fix this issue, but I tried that and it crashes too often. Does anybody had faced this issue and founded a solution?
Thanks.
UPDATED:
The solution to this problem was to remove this line from the -(void)stop method. Also change anything that says state to self.state
if (state == AS_WAITING_FOR_DATA || state == AS_STARTING_FILE_THREAD)
return;
The solution to this problem was to remove this line from the -(void)stop method. Also change anything that says state to self.state
if (state == AS_WAITING_FOR_DATA || state == AS_STARTING_FILE_THREAD) return;