Changeset 21479 for trunk/src/dsound/OS23DBuffer.cpp
- Timestamp:
- Nov 27, 2010, 11:27:43 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/dsound/OS23DBuffer.cpp
r3925 r21479 19 19 #include <string.h> 20 20 21 #define INITGUID21 #define CINTERFACE 22 22 #include <dsound.h> 23 23 … … 42 42 { 43 43 lpVtbl = &Vtbl; 44 Vtbl. AddRef = Sound3DBufferAddRef;45 Vtbl. Release = Sound3DBufferRelease;46 Vtbl. QueryInterface = Sound3DBufferQueryInterface;47 Vtbl. GetAllParameters = Sound3DBufferGetAllParameters;48 Vtbl. SetAllParameters = Sound3DBufferSetAllParameters;49 Vtbl. GetMaxDistance = Sound3DBufferGetMaxDistance;50 Vtbl. SetMaxDistance = Sound3DBufferSetMaxDistance;51 Vtbl. GetMinDistance = Sound3DBufferGetMinDistance;52 Vtbl. SetMinDistance = Sound3DBufferSetMinDistance;53 Vtbl. GetMode = Sound3DBufferGetMode;54 Vtbl. SetMode = Sound3DBufferSetMode;55 Vtbl. GetPosition = Sound3DBufferGetPosition;56 Vtbl. SetPosition = Sound3DBufferSetPosition;57 Vtbl. GetConeAngles = Sound3DBufferGetConeAngles;58 Vtbl. SetConeAngles = Sound3DBufferSetConeAngles;59 Vtbl. GetConeOrientation = Sound3DBufferGetConeOrientation;60 Vtbl. SetConeOrientation = Sound3DBufferSetConeOrientation;61 Vtbl. GetConeOutsideVolume = Sound3DBufferGetConeOutsideVolume;62 Vtbl. SetConeOutsideVolume = Sound3DBufferSetConeOutsideVolume;63 Vtbl. GetVelocity = Sound3DBufferGetVelocity;64 Vtbl. SetVelocity = Sound3DBufferSetVelocity;44 Vtbl.fnAddRef = Sound3DBufferAddRef; 45 Vtbl.fnRelease = Sound3DBufferRelease; 46 Vtbl.fnQueryInterface = Sound3DBufferQueryInterface; 47 Vtbl.fnGetAllParameters = Sound3DBufferGetAllParameters; 48 Vtbl.fnSetAllParameters = Sound3DBufferSetAllParameters; 49 Vtbl.fnGetMaxDistance = Sound3DBufferGetMaxDistance; 50 Vtbl.fnSetMaxDistance = Sound3DBufferSetMaxDistance; 51 Vtbl.fnGetMinDistance = Sound3DBufferGetMinDistance; 52 Vtbl.fnSetMinDistance = Sound3DBufferSetMinDistance; 53 Vtbl.fnGetMode = Sound3DBufferGetMode; 54 Vtbl.fnSetMode = Sound3DBufferSetMode; 55 Vtbl.fnGetPosition = Sound3DBufferGetPosition; 56 Vtbl.fnSetPosition = Sound3DBufferSetPosition; 57 Vtbl.fnGetConeAngles = Sound3DBufferGetConeAngles; 58 Vtbl.fnSetConeAngles = Sound3DBufferSetConeAngles; 59 Vtbl.fnGetConeOrientation = Sound3DBufferGetConeOrientation; 60 Vtbl.fnSetConeOrientation = Sound3DBufferSetConeOrientation; 61 Vtbl.fnGetConeOutsideVolume = Sound3DBufferGetConeOutsideVolume; 62 Vtbl.fnSetConeOutsideVolume = Sound3DBufferSetConeOutsideVolume; 63 Vtbl.fnGetVelocity = Sound3DBufferGetVelocity; 64 Vtbl.fnSetVelocity = Sound3DBufferSetVelocity; 65 65 66 66 … … 74 74 75 75 // add a reference to the parent primary SoundBuffer to make sure it won't suddenly disappear 76 lpSoundBuffer->Vtbl. AddRef(lpSoundBuffer);76 lpSoundBuffer->Vtbl.fnAddRef(lpSoundBuffer); 77 77 // set pointer to ourselves in parent SoundBuffer 78 78 lpSoundBuffer->Set3DBuffer(this); … … 85 85 dprintf(("DSOUND-OS2IDirectSound3DBuffer::~OS2IDirectSound3DBuffer (this=%X)", this)); 86 86 lpSoundBuffer->Set3DBuffer(NULL); 87 lpSoundBuffer->Vtbl. Release(lpSoundBuffer);87 lpSoundBuffer->Vtbl.fnRelease(lpSoundBuffer); 88 88 } 89 89 … … 98 98 *ppvObj = NULL; 99 99 100 if (!IsEqualGUID(riid, IID_IDirectSound3DBuffer))100 if (!IsEqualGUID(riid, &IID_IDirectSound3DBuffer)) 101 101 return E_NOINTERFACE; 102 102
Note:
See TracChangeset
for help on using the changeset viewer.