Maarten Lankhorst : dsound: Constify DSOUND_CheckEvent.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jul 30 16:52:32 CDT 2007


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

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Sun Jul 29 21:39:46 2007 +0200

dsound: Constify DSOUND_CheckEvent.

---

 dlls/dsound/dsound_private.h |    2 +-
 dlls/dsound/mixer.c          |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/dsound/dsound_private.h b/dlls/dsound/dsound_private.h
index cfbf6bd..f55f46d 100644
--- a/dlls/dsound/dsound_private.h
+++ b/dlls/dsound/dsound_private.h
@@ -429,7 +429,7 @@ HRESULT DSOUND_FullDuplexCreate(REFIID riid, LPDIRECTSOUNDFULLDUPLEX* ppDSFD);
 
 /* mixer.c */
 
-void DSOUND_CheckEvent(IDirectSoundBufferImpl *dsb, DWORD playpos, int len);
+void DSOUND_CheckEvent(const IDirectSoundBufferImpl *dsb, DWORD playpos, int len);
 void DSOUND_RecalcVolPan(PDSVOLUMEPAN volpan);
 void DSOUND_AmpFactorToVolPan(PDSVOLUMEPAN volpan);
 void DSOUND_RecalcFormat(IDirectSoundBufferImpl *dsb);
diff --git a/dlls/dsound/mixer.c b/dlls/dsound/mixer.c
index 12243fe..d927df9 100644
--- a/dlls/dsound/mixer.c
+++ b/dlls/dsound/mixer.c
@@ -106,7 +106,7 @@ void DSOUND_RecalcFormat(IDirectSoundBufferImpl *dsb)
  * "last played" position for the buffer (i.e. dsb->playpos) and "len" bytes
  * beyond that position.
  */
-void DSOUND_CheckEvent(IDirectSoundBufferImpl *dsb, DWORD playpos, int len)
+void DSOUND_CheckEvent(const IDirectSoundBufferImpl *dsb, DWORD playpos, int len)
 {
 	int			i;
 	DWORD			offset;




More information about the wine-cvs mailing list