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/DAudioNotify.cpp

    r5608 r21479  
    1919#include <string.h>
    2020
    21 #define INITGUID
     21#define CINTERFACE
    2222#include <dsound.h>
    2323
     
    3232{
    3333   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;
    3838
    3939   dprintf(("DSOUND-IDirectAudioNotify::IDirectAudioNotify (this=%X)", this));
     
    4545
    4646   // 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);
    4848   // set pointer to ourselves in parent SoundBuffer
    4949   lpSoundBuffer->SetNotify(this);
     
    5656   dprintf(("DSOUND-IDirectAudioNotify::~IDirectAudioNotify (this=%X)", this));
    5757   lpSoundBuffer->SetNotify(NULL);
    58    lpSoundBuffer->Vtbl.Release(lpSoundBuffer);
     58   lpSoundBuffer->Vtbl.fnRelease(lpSoundBuffer);
    5959   if (lpPositions != NULL)
    6060      free(lpPositions);
     
    7171   *ppvObj = NULL;
    7272
    73    if (!IsEqualGUID(riid, IID_IDirectSoundNotify))
     73   if (!IsEqualGUID(riid, &IID_IDirectSoundNotify))
    7474      return E_NOINTERFACE;
    7575
Note: See TracChangeset for help on using the changeset viewer.