Changeset 21479 for trunk/src/dsound/DAudioNotify.cpp
- Timestamp:
- Nov 27, 2010, 11:27:43 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/dsound/DAudioNotify.cpp
r5608 r21479 19 19 #include <string.h> 20 20 21 #define INITGUID21 #define CINTERFACE 22 22 #include <dsound.h> 23 23 … … 32 32 { 33 33 lpVtbl = &Vtbl; 34 Vtbl. AddRef = DAudioNotifyAddRef;35 Vtbl. Release = DAudioNotifyRelease;36 Vtbl. QueryInterface = DAudioNotifyQueryInterface;37 Vtbl. SetNotificationPositions = DAudioNotifySetNotificationPositions;34 Vtbl.fnAddRef = DAudioNotifyAddRef; 35 Vtbl.fnRelease = DAudioNotifyRelease; 36 Vtbl.fnQueryInterface = DAudioNotifyQueryInterface; 37 Vtbl.fnSetNotificationPositions = DAudioNotifySetNotificationPositions; 38 38 39 39 dprintf(("DSOUND-IDirectAudioNotify::IDirectAudioNotify (this=%X)", this)); … … 45 45 46 46 // add a reference to the parent SoundBuffer to make sure it won't suddenly disappear 47 lpSoundBuffer->Vtbl. AddRef(lpSoundBuffer);47 lpSoundBuffer->Vtbl.fnAddRef(lpSoundBuffer); 48 48 // set pointer to ourselves in parent SoundBuffer 49 49 lpSoundBuffer->SetNotify(this); … … 56 56 dprintf(("DSOUND-IDirectAudioNotify::~IDirectAudioNotify (this=%X)", this)); 57 57 lpSoundBuffer->SetNotify(NULL); 58 lpSoundBuffer->Vtbl. Release(lpSoundBuffer);58 lpSoundBuffer->Vtbl.fnRelease(lpSoundBuffer); 59 59 if (lpPositions != NULL) 60 60 free(lpPositions); … … 71 71 *ppvObj = NULL; 72 72 73 if (!IsEqualGUID(riid, IID_IDirectSoundNotify))73 if (!IsEqualGUID(riid, &IID_IDirectSoundNotify)) 74 74 return E_NOINTERFACE; 75 75
Note:
See TracChangeset
for help on using the changeset viewer.