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/OS2DSOUND.CPP

    r5292 r21479  
    2121#include <stdio.h> /****** DEBUGGING ********/
    2222
    23 #define INITGUID
     23#define CINTERFACE
    2424#include <dsound.h>
    2525
     
    4242{
    4343   lpVtbl = &Vtbl;
    44    Vtbl.AddRef               = SoundAddRef;
    45    Vtbl.Release              = SoundRelease;
    46    Vtbl.QueryInterface       = SoundQueryInterface;
    47    Vtbl.Compact              = SoundCompact;
    48    Vtbl.CreateSoundBuffer    = SoundCreateSoundBuffer;
    49    Vtbl.GetCaps              = SoundGetCaps;
    50    Vtbl.DuplicateSoundBuffer = SoundDuplicateSoundBuffer;
    51    Vtbl.SetCooperativeLevel  = SoundSetCooperativeLevel;
    52    Vtbl.Compact              = SoundCompact;
    53    Vtbl.GetSpeakerConfig     = SoundGetSpeakerConfig;
    54    Vtbl.SetSpeakerConfig     = SoundSetSpeakerConfig;
    55    Vtbl.Initialize           = SoundInitialize;
     44   Vtbl.fnAddRef               = SoundAddRef;
     45   Vtbl.fnRelease              = SoundRelease;
     46   Vtbl.fnQueryInterface       = SoundQueryInterface;
     47   Vtbl.fnCompact              = SoundCompact;
     48   Vtbl.fnCreateSoundBuffer    = SoundCreateSoundBuffer;
     49   Vtbl.fnGetCaps              = SoundGetCaps;
     50   Vtbl.fnDuplicateSoundBuffer = SoundDuplicateSoundBuffer;
     51   Vtbl.fnSetCooperativeLevel  = SoundSetCooperativeLevel;
     52   Vtbl.fnCompact              = SoundCompact;
     53   Vtbl.fnGetSpeakerConfig     = SoundGetSpeakerConfig;
     54   Vtbl.fnSetSpeakerConfig     = SoundSetSpeakerConfig;
     55   Vtbl.fnInitialize           = SoundInitialize;
    5656
    5757   dprintf(("DSOUND-OS2IDirectSound::OS2IDirectSound"));
     
    7575      return;
    7676   }
    77    primary->Vtbl.AddRef(primary);
     77   primary->Vtbl.fnAddRef(primary);
    7878
    7979   dprintf(("Sound init OK"));
     
    9999   *ppvObj = NULL;
    100100
    101    if (!IsEqualGUID(riid, CLSID_DirectSound) &&
    102        !IsEqualGUID(riid, IID_IDirectSound))
     101   if (!IsEqualGUID(riid, &CLSID_DirectSound) &&
     102       !IsEqualGUID(riid, &IID_IDirectSound))
    103103      return E_NOINTERFACE;
    104104
     
    181181      return lastErr;
    182182   }
    183    sndbuf->Vtbl.AddRef(sndbuf);
     183   sndbuf->Vtbl.fnAddRef(sndbuf);
    184184
    185185   *lplpDirectSoundBuffer = (LPDIRECTSOUNDBUFFER)sndbuf;
     
    251251      return lastErr;
    252252   }
    253    tgtBuf->Vtbl.AddRef(tgtBuf);
     253   tgtBuf->Vtbl.fnAddRef(tgtBuf);
    254254
    255255   *lplpDirectSoundBuffer = (LPDIRECTSOUNDBUFFER)tgtBuf;
Note: See TracChangeset for help on using the changeset viewer.