Small cleanup in IDirectSoundBufferImpl_SetPan().

This commit is contained in:
Francois Gouget 2004-07-23 22:58:59 +00:00 committed by Alexandre Julliard
parent 7433202199
commit 9f40a12ed6
1 changed files with 2 additions and 5 deletions

View File

@ -737,7 +737,6 @@ static HRESULT WINAPI IDirectSoundBufferImpl_SetPan(
) {
HRESULT hres = DS_OK;
ICOM_THIS(IDirectSoundBufferImpl,iface);
LONG oldPan;
TRACE("(%p,%ld)\n",This,pan);
@ -756,10 +755,8 @@ static HRESULT WINAPI IDirectSoundBufferImpl_SetPan(
/* **** */
EnterCriticalSection(&(This->lock));
oldPan = This->volpan.lPan;
This->volpan.lPan = pan;
if (pan != oldPan) {
if (This->volpan.lPan != pan) {
This->volpan.lPan = pan;
DSOUND_RecalcVolPan(&(This->volpan));
if (This->hwbuf) {