Ignore:
Timestamp:
Nov 27, 2010, 11:27:43 AM (15 years ago)
Author:
dmik
Message:

Get rid of dd_obj_base.h which duplicates obj_base.h creating unnecessary mess (symbol/define duplication) and conflicts when both the DDarw and other COM-related headers are included.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/dsound/OS23DBuffer.cpp

    r3925 r21479  
    1919#include <string.h>
    2020
    21 #define INITGUID
     21#define CINTERFACE
    2222#include <dsound.h>
    2323
     
    4242{
    4343   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;
    6565
    6666
     
    7474
    7575   // 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);
    7777   // set pointer to ourselves in parent SoundBuffer
    7878   lpSoundBuffer->Set3DBuffer(this);
     
    8585   dprintf(("DSOUND-OS2IDirectSound3DBuffer::~OS2IDirectSound3DBuffer (this=%X)", this));
    8686   lpSoundBuffer->Set3DBuffer(NULL);
    87    lpSoundBuffer->Vtbl.Release(lpSoundBuffer);
     87   lpSoundBuffer->Vtbl.fnRelease(lpSoundBuffer);
    8888}
    8989
     
    9898   *ppvObj = NULL;
    9999
    100    if (!IsEqualGUID(riid, IID_IDirectSound3DBuffer))
     100   if (!IsEqualGUID(riid, &IID_IDirectSound3DBuffer))
    101101      return E_NOINTERFACE;
    102102
Note: See TracChangeset for help on using the changeset viewer.