try again

This commit is contained in:
zeromus 2008-05-27 07:07:11 +00:00
parent 72706e995a
commit 765ef019c4
1 changed files with 2 additions and 2 deletions

View File

@ -67,14 +67,14 @@ public:
HRESULT hr = ds_dev->CreateSoundBuffer(&dsbd,&ds_buf,0);
cPlay = 0;
if(hr)
if(!hr)
{
hr = ds_buf->Play(0,0,DSBPLAY_LOOPING);
}
//if we couldnt create the voice, then a sound card is missing.
//we'll use this in getVoice to catch the condition
if(!hr)
if(hr)
dead = true;
}