Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mynameisjohnj

Pages: [1]
1
Audio / Re: Use of locks in sf::SoundStream::onGetData
« on: March 08, 2016, 06:12:32 pm »
Merci!

2
Audio / Re: Use of locks in sf::SoundStream::onGetData
« on: March 08, 2016, 04:24:08 pm »
Hi All,

I hate to resurrect this thread, but I have kind of a relevant question and feel like there are enough soundstream questions high up at the moment (though I'll make a thread if noone responds).

It's good to know that the sf::SoundStream's onGetData function is passing you the third of three buffers used for streaming, as I wasn't really sure if this was the case. Could this be added to the docs?

Also, would you say the onGetData function is a reasonable place to do some mixing / processing? Nothing too ridiculous, but... well let's just put some numbers to it.

If I push say 2 seconds worth of audio in each onGetData call, that means that while 2 seconds play there are two seconds ready to go and 2 seconds I'll be asked for. Does that mean I've got the time it takes to play those two seconds to process and push new audio?

Sorry if that's difficult to read... let me know if I can be more clear / if I should make a new thread. And by the way, thanks to all the developers for working on SFML. It's people like you and libraries like this that make life worth living.

Pages: [1]
anything