1
Audio / Reusing sound buffers with new data
« on: July 28, 2010, 04:53:32 pm »Quote from: "Laurent"
You talk about buffers (sf::SoundBuffer), but it looks like you mean "sounds" (sf::Sound). So what exactly are you talking about?
I have a project that must run 24x7 and am currently having some issues with either sf::SoundBuffer or sf::Sound. They load and play perfectly using wav files, but over time, like 12 hours after initialization the sounds get really noisy. You can still hear it but it sounds badly with lots of clics and noise.
I thought about reloading the sound files at some point but became concerned about wasting memory by not reusing the already allocated space for the files that were loaded initially.
How can we reuse them? (I am currently using SFML 1.6)