Hello,
I want to implement a custom Soundstream. For that, I also have to override onGetData, but I don't really understand how I can feed it data. Why is data.samples a pointer to a int16? That doesn't make sense to me, I expected that I pass an array or something like that. Also, is it necessary to use a vector like in the example? My theory is that you are giving a pointer to a start int16, and then SFML is stepping through the vector by incrementing the sample pointer address by the size of int16 to get to the next sample. Is that right?
Another question, I deliver the data through a vector <boost::variant <int, int16, maybe something else...>>. Is there a way to give soundstream the data through that? Of course, the actual data in each variant passed to the soundstream will ALWAYS be an int16, but I need that variant for flexibility reasons (the vectors with the data is passed through a pipeline before it gets to the soundstream).
Thanks!