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:
parent
a470ea6205
commit
3a8ae53de4
|
@ -326,11 +326,6 @@ static void DSOUND_ChangeListener(IDirectSound3DListenerImpl *ds3dl)
|
||||||
TRACE("(%p)\n",ds3dl);
|
TRACE("(%p)\n",ds3dl);
|
||||||
for (i = 0; i < ds3dl->device->nrofbuffers; i++)
|
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 */
|
/* check if this buffer is waiting for recalculation */
|
||||||
if (ds3dl->device->buffers[i]->ds3db_need_recalc)
|
if (ds3dl->device->buffers[i]->ds3db_need_recalc)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue