Hi Damien, Waiting for a sound to finish is quite simple. DirectX DirectSound can check the status of the playback of a sound which can be put in a while loop. When the state of the sound changes the loop ends and the function continues. In VB 6 it would look like this.
Do While dsSoundBuffer.GetStatus = DSCBSTATUS_CAPTURING DoEvents Loop The object dsSoundBuffer is used genericly in this instance. If you had a sound buffer called dsFireMissile you would put that in the place of dsSoundBuffer above. As far as using VB 6 rather than visual C++ at this point I say go for it. ++. VB is not an incredibly hard language to learn and you might have fun doing things without having to learn all of C++. I used C#.NET and VB.NET myself rather than working with C++ because C++ has a huge learning curve. I don't recommend C++ for newbies unless he/she wants to put allot of work in to the effort. However, all things considered I would recommend C#.NET or VB.NET before VB 6. However, if you feel VB 6 will help you I'd say give it a try. x-sight interactive wrote: > waiting for sounds to finish most of the time. i don't know of any other > time i'd need to make it wait. but when i say creating forms i'm talking > about making general programs also. oh, so a timer is just like a control, i > see. in autoit you have the sleep function for it waiting, the TimerInit > function to initialise a timer,k the TimerDiff function to work out the time > on the timer, but, well, maybe i should stick to vb for making game > programs, at least for the moment, if i'm to get some fun out of it without > getting frustrated with c *smile* > > regards, > > damien > _______________________________________________ Gamers mailing list .. [email protected] To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web.
