Hey there
I'm considering using SFML audio classes to handle sounds and music in a game. I have a few questions about this.
- I want to play a music, and automatically starts a new music when this one is done. Is there a way to know when the streamed music is about to end ? Like a callback or something ?
- I want to play a sound everytime someone shoots. So one SoundBuffer for all of them, but how do I dynamically create the Sound objects ? Do I need to keep a list of all active sounds, and delete them when they're finished ? Is there some auto-delete flag ?
All I really want is the ability to chain musics, and to starts sounds at anytime, without knowing in advance how many Sound object I will need.
I'm not decided on a version yet, so I'll probably go with 2.0 if nothing's wrong with it.
Thanks