91
Audio / alGenSources fails after creating a bunch of sf::Sounds
« on: May 08, 2009, 12:05:33 am »
I would implement a SoundManager class that you can just use like this:
If the file was already loaded, the manager just stops the current instance and plays it again from the beginning. This is how I use sounds in my projects and it works for my needs
Code: [Select]
std::string filename = "somesound.wav";
SoundManager.playSound(filename);
If the file was already loaded, the manager just stops the current instance and plays it again from the beginning. This is how I use sounds in my projects and it works for my needs