Not really a contrib, more an RFC (is this the right forum??):
When playing a wav, the sound buffer is currently not rewound. I have a wav file (that is a pretty long one). When I stop it and then play it, it continues where it stopped. This is ok, but sometimes I want to 'restart' the wav when I play it, maybe a 'rewind' method would be usefull ??
- Code: Select all
public static void RewindWav(string soundname)
{
if (sounds.ContainsKey(soundname))
{
BrumeSoundBuffer sound = sounds[soundname].GetObject();
if (sound != null)
sound.Rewind(0);
}
}
I guess I can also store the returned BrumeSoundBuffer and rewinf it there, but this would add a level of convenience

Thanx