Good point... I havent really asked a question have i?
What ive written:
Ive used the basic example in the sf::Http docs to connect to the streaming radio station url. This gets the data fine, but its blocking, which means I cant process the data to play.
So I think what I need to work out is how to use the sf:http class to connect to my streaming radio station and instead of just blocking and buffering the data, it needs to push it onto a vector or some such thing. This would mean in another thread I could pop the data of the other end of the vector and play the audio.
So My two questions are.
1. Does my theory about how to do this (I imagine im going to need locking as well) seem right?
2. How do I do this with the sf::Http class?
Cheers
Mark