I have a problem when trying to play wavs in a sequence, i.e. 2 seperate wavs, one with "Hello", second with "There" and string them so "hello" is played, followed by "there"
I am using :
if( !PlayedSound )
{
PlaySound(filename1, NULL, SND_FILENAME | SND_ASYNC );
PlayedSound = TRUE;
}
else
if( PlaySound( filename2, NULL, SND_FILENAME | SND_ASYNC | SND_NOSTOP )
{
....
PlayedSound = FALSE;
etc...
}
But sometimes i get the sound, and sometimes nothing.
Sometimes there is no sound only on the first pass, then it is fine thereafter..
This is an annoying problem and i'd appreciate any help!
Thanks,
KG.
I am using :
if( !PlayedSound )
{
PlaySound(filename1, NULL, SND_FILENAME | SND_ASYNC );
PlayedSound = TRUE;
}
else
if( PlaySound( filename2, NULL, SND_FILENAME | SND_ASYNC | SND_NOSTOP )
{
....
PlayedSound = FALSE;
etc...
}
But sometimes i get the sound, and sometimes nothing.
Sometimes there is no sound only on the first pass, then it is fine thereafter..
This is an annoying problem and i'd appreciate any help!
Thanks,
KG.