[added in 1.5] Rewind when playing WAV

You can help us to improve Brume ! Post your contribs here and we will try to integrate them in next release for other users !

Moderator: Brume Dev Team

[added in 1.5] Rewind when playing WAV

Postby Guest on Sun Nov 05, 2006 11:56 am

Hi,

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
Guest
 

Postby Silmaryls on Mon Nov 06, 2006 9:08 pm

Hi !

This is the good forum :D and a good contribution !
I will add your method for the next release.

Thanks !
User avatar
Silmaryls
Brume Team Member
 
Posts: 340
Joined: Tue Feb 21, 2006 10:09 pm
Location: Paris - France


Return to Contribs

Who is online

Users browsing this forum: No registered users and 1 guest

cron