I'm getting to the point where I think I should start managing my sounds better. While I don't have many sounds now, I will eventually, and I want to start a good sound system before it's too late. I have 2 ideas for managing sounds.
First idea : manage them like a sprite sheet. Put all sounds into one file (soudbuffer) like a texture, and just set the playing offset to whichever sound I need, and stop it when that specific sound ends, like setting the texture rectangle. The thing is I have to have a sf::Time variable to comper to where the sound is constantly to stop it. But it's doable.
Second idea : make a lot of soundbuffers for each sound, and just have one sound that switches between them.
I understand that both of these methods mean you can't play multiple sounds at once, but that's how i want it. I will have multiple sounds, but each sound buffer or group of soundbuffers will be related somehow. So...anybody have any ideas or suggestions?