Not for me, but someone has asked me how to reuse buffers in sfml, and as far as I can tell, it's not doable. Could someone confirm/deny this for me.
The scenario is this:
1. Load a audio file (works)
2 Assign it to a buffer (works)
3 Play said audio snippet (works)
4 deallocate memory used for buffer (I.E. set buffer to null)
5 load new sound
6 assign to previously used buffer w/o making a new one (I think Sound.SetBuffer() does this)
Basically, I think the question is whether or not buffer content can be deallocated until reinitialized at a later time.
The purpose (I think) is to load audio files, play them, then move to new levels, and reload the buffers with new sounds without using any additional memory.
Is there something other than SetBuffer that can be used to nullify a buffer until it's services are required again?
For my purposes, simply reassigning the buffer seems to be perfectly acceptable, but I'm being asked how to free memory used by a buffer w/o loosing the buffer itself.
Dunno how to do that (yet) so if anyone has ideas/suggestions/hard facts, I sure would be happy to pass them on.
Thanks.