Posted on 2000-02-10
I have defined a macro and have encountered a problem using it. Below is the macro I have defined.
#define BULLET PlaySound("bullet.wav",NULL,SND_FILENAME|SND_ASYNC)
I then try to use it and is successful.
BULLET; // run the macro
The above works and I heard the sound of one bullet.
However, when I tried to run the macro twice consecutively, it is unsuccessful.
BULLET; // run macro
BULLET; // another time
I expect to hear two bullets sound but I only hear one bullet sound.