Quote:
> 1. How can I make the engine sound (ie reving up the engine; speeding up)
> proportional to acceration. Currently i am using a WinAPI function that i
> can make "beeps" at different frequencies except that it comes out the
> system speaker not on the sound card. Is there a function or something of
> the sort to create sounds at different frequencies?
You could use DirectSound for this. You could load a wave file for your
engine sound, then use DirectSoundSecondaryBuffer8.SetFrequency to control
the pitch of the engine. There are many samples in the DX SDK that show you
how to load a sound.
Quote:
> 2. I am using class modules, how do I create the constructor for that
> specific class?
What specific class are you talking about? Are you using
Visual Basic 6?
There is a Class_Initialize method that gets called when your class object
is created. Or, are you refering to VB.NET parameterized constructors?
--
Eric DeBrosse
http://www.blown.com/dx/
Microsoft Visual Basic DirectX MVP
The opinions expressed in this message are my own personal views and
do not reflect the official views of Microsoft Corporation. The MVP program
does not constitute employment or contractual obligation with Microsoft.