Code cleanup

This commit is contained in:
pagefault
2001-06-19 14:55:56 +00:00
parent 59355894e5
commit 5bf46c94ab

View File

@@ -681,7 +681,7 @@ InitSound()
dsbd.dwFlags = DSBCAPS_STICKYFOCUS; // | DSBCAPS_PRIMARYBUFFER;
dsbd.dwBufferBytes = SoundBufferSize;
dsbd.lpwfxFormat = &wfx;
if (DS_OK == lpDirectSound->CreateSoundBuffer(&dsbd, &lpPrimaryBuffer, NULL))
{
if (DS_OK == lpPrimaryBuffer->QueryInterface(IID_IDirectSoundBuffer8, (LPVOID *) &lpSoundBuffer))
@@ -689,7 +689,7 @@ InitSound()
if (DS_OK != lpSoundBuffer->Play(0,0,DSBPLAY_LOOPING))
{
SoundEnabled=0; return FALSE;
}
}
FirstSound=0;
return TRUE;
}