Ignore:
Timestamp:
Mar 8, 2000, 7:26:49 PM (25 years ago)
Author:
mike
Message:

Killed no longer needed files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/dsound/new/OS2PrimBuff.cpp

    r3027 r3044  
    4646#include "OS2SndBuffer.h"
    4747#include "OS2PrimBuff.h"
     48#include "OS23DListener.h"
    4849
    4950#include "dart.h"
     51
     52#undef THIS
     53#define THIS VOID*This
     54
     55#undef THIS_
     56#define THIS_ VOID*This,
    5057
    5158//******************************************************************************
     
    8592   fPrimary   = TRUE;
    8693   Referenced = 0;
     94   listener   = NULL;
    8795
    8896   lpfxFormat = (WAVEFORMATEX *)malloc(/*bufferdesc.lpwfxFormat->cbSize +*/ sizeof(WAVEFORMATEX));
     
    128136HRESULT WIN32API PrimBufQueryInterface(THIS, REFIID riid, LPVOID * ppvObj)
    129137{
     138   dprintf(("DSOUND-PrimBuff: QueryInterface"));
     139
    130140   if (This == NULL) {
    131      return DSERR_INVALIDPARAM;
     141      return DSERR_INVALIDPARAM;
    132142   }
    133143   *ppvObj = NULL;
    134144
    135    if (!IsEqualGUID(riid, IID_IDirectSoundBuffer))
    136      return E_NOINTERFACE;
    137 
    138    *ppvObj = This;
    139 
    140    PrimBufAddRef(This);
    141    return DS_OK;
     145   if (IsEqualGUID(riid, IID_IDirectSoundBuffer)) {
     146      *ppvObj = This;
     147      PrimBufAddRef(This);
     148      return DS_OK;
     149   }
     150
     151
     152   if (IsEqualGUID(riid, IID_IDirectSound3DListener)) {
     153      OS2PrimBuff                *me = (OS2PrimBuff *)This;
     154      OS2IDirectSound3DListener  *listener;
     155
     156      listener     = new OS2IDirectSound3DListener(me);
     157      *ppvObj      = listener;
     158      listener->Vtbl.AddRef((IDirectSound3DListener *)listener);
     159      return DS_OK;
     160   }
     161
     162   return E_NOINTERFACE;
    142163}
    143164
Note: See TracChangeset for help on using the changeset viewer.