Romain Iehl : dsound: Fix bug preventing correct calculation of the sound parameters

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jul 6 12:59:06 CDT 2007


Module: wine
Branch: master
Commit: 3a8ae53de4e63dae3dbe130f0f13d4110ab0ece2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3a8ae53de4e63dae3dbe130f0f13d4110ab0ece2

Author: Romain Iehl <romain.iehl.wine at gmail.com>
Date:   Thu Jul  5 18:55:39 2007 +0200

dsound: Fix bug preventing correct calculation of the sound parameters
of a 3Dbuffer, when an application calls CommitDeferredSettings after
the 3DBuffer has been released.

---

 dlls/dsound/sound3d.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/dlls/dsound/sound3d.c b/dlls/dsound/sound3d.c
index f6ae455..0e4ea0e 100644
--- a/dlls/dsound/sound3d.c
+++ b/dlls/dsound/sound3d.c
@@ -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)
 		{




More information about the wine-cvs mailing list