dsound: Fix bug preventing correct calculation of the sound parameters

of a 3Dbuffer, when an application calls CommitDeferredSettings after
the 3DBuffer has been released.
This commit is contained in:
Romain Iehl 2007-07-05 18:55:39 +02:00 committed by Alexandre Julliard
parent a470ea6205
commit 3a8ae53de4
1 changed files with 0 additions and 5 deletions

View File

@ -326,11 +326,6 @@ static void DSOUND_ChangeListener(IDirectSound3DListenerImpl *ds3dl)
TRACE("(%p)\n",ds3dl);
for (i = 0; i < ds3dl->device->nrofbuffers; i++)
{
/* some buffers don't have 3d buffer (Ultima IX seems to
crash without the following line) */
if (ds3dl->device->buffers[i]->ds3db == NULL)
continue;
/* check if this buffer is waiting for recalculation */
if (ds3dl->device->buffers[i]->ds3db_need_recalc)
{