Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

133 lines
4.7 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: dsound3dbuffer.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // dSound3DBuffer.h : Declaration of the C_dxj_DirectSound3dBufferObject
  11. // DHF_DS entire file
  12. #include "resource.h" // main symbols
  13. #define typedef__dxj_DirectSound3dBuffer LPDIRECTSOUND3DBUFFER
  14. /////////////////////////////////////////////////////////////////////////////
  15. // Direct
  16. //REVIEW -- using pointers to ID's is necessary because some compilers don't like
  17. //references as template arguments.
  18. class C_dxj_DirectSound3dBufferObject :
  19. public I_dxj_DirectSound3dBuffer,
  20. //public CComCoClass<C_dxj_DirectSound3dBufferObject, &CLSID__dxj_DirectSound3dBuffer>,
  21. public CComObjectRoot
  22. {
  23. public:
  24. C_dxj_DirectSound3dBufferObject() ;
  25. virtual ~C_dxj_DirectSound3dBufferObject() ;
  26. BEGIN_COM_MAP(C_dxj_DirectSound3dBufferObject)
  27. COM_INTERFACE_ENTRY(I_dxj_DirectSound3dBuffer)
  28. END_COM_MAP()
  29. // DECLARE_REGISTRY(CLSID__dxj_DirectSound3dBuffer, "DIRECT.DirectSound3dBuffer.3", "DIRECT.DirectSound3dBuffer.3", IDS_DSOUND3DBUFFER_DESC, THREADFLAGS_BOTH)
  30. DECLARE_AGGREGATABLE(C_dxj_DirectSound3dBufferObject)
  31. // I_dxj_DirectSound3dBuffer
  32. public:
  33. /*** IDirectSoundBuffer3D methods ***/
  34. //updated
  35. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalSetObject(
  36. /* [in] */ IUnknown __RPC_FAR *lpdd);
  37. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalGetObject(
  38. /* [retval][out] */ IUnknown __RPC_FAR *__RPC_FAR *lpdd);
  39. HRESULT STDMETHODCALLTYPE getDirectSound3dListener(
  40. /* [retval][out] */ I_dxj_DirectSound3dListener __RPC_FAR *__RPC_FAR *retVal);
  41. HRESULT STDMETHODCALLTYPE getDirectSoundBuffer(
  42. /* [retval][out] */ I_dxj_DirectSoundBuffer __RPC_FAR *__RPC_FAR *retVal);
  43. HRESULT STDMETHODCALLTYPE getAllParameters(
  44. /* [out][in] */ DS3dBuffer __RPC_FAR *buffer);
  45. HRESULT STDMETHODCALLTYPE getConeAngles(
  46. /* [out][in] */ long __RPC_FAR *inCone,
  47. /* [out][in] */ long __RPC_FAR *outCone);
  48. HRESULT STDMETHODCALLTYPE getConeOrientation(
  49. /* [out][in] */ D3dVector __RPC_FAR *orientation);
  50. HRESULT STDMETHODCALLTYPE getConeOutsideVolume(
  51. /* [retval][out] */ long __RPC_FAR *coneOutsideVolume);
  52. HRESULT STDMETHODCALLTYPE getMaxDistance(
  53. /* [retval][out] */ float __RPC_FAR *maxDistance);
  54. HRESULT STDMETHODCALLTYPE getMinDistance(
  55. /* [retval][out] */ float __RPC_FAR *minDistance);
  56. HRESULT STDMETHODCALLTYPE getMode(
  57. /* [retval][out] */ long __RPC_FAR *mode);
  58. HRESULT STDMETHODCALLTYPE getPosition(
  59. /* [out][in] */ D3dVector __RPC_FAR *position);
  60. HRESULT STDMETHODCALLTYPE getVelocity(
  61. /* [out][in] */ D3dVector __RPC_FAR *velocity);
  62. HRESULT STDMETHODCALLTYPE setAllParameters(
  63. /* [in] */ DS3dBuffer __RPC_FAR *buffer,
  64. /* [in] */ long applyFlag);
  65. HRESULT STDMETHODCALLTYPE setConeAngles(
  66. /* [in] */ long inCone,
  67. /* [in] */ long outCone,
  68. /* [in] */ long applyFlag);
  69. HRESULT STDMETHODCALLTYPE setConeOrientation(
  70. /* [in] */ float x,
  71. /* [in] */ float y,
  72. /* [in] */ float z,
  73. /* [in] */ long applyFlag);
  74. HRESULT STDMETHODCALLTYPE setConeOutsideVolume(
  75. /* [in] */ long coneOutsideVolume,
  76. /* [in] */ long applyFlag);
  77. HRESULT STDMETHODCALLTYPE setMaxDistance(
  78. /* [in] */ float maxDistance,
  79. /* [in] */ long applyFlag);
  80. HRESULT STDMETHODCALLTYPE setMinDistance(
  81. /* [in] */ float minDistance,
  82. /* [in] */ long applyFlag);
  83. HRESULT STDMETHODCALLTYPE setMode(
  84. /* [in] */ long mode,
  85. /* [in] */ long applyFlag);
  86. HRESULT STDMETHODCALLTYPE setPosition(
  87. /* [in] */ float x,
  88. /* [in] */ float y,
  89. /* [in] */ float z,
  90. /* [in] */ long applyFlag);
  91. HRESULT STDMETHODCALLTYPE setVelocity(
  92. /* [in] */ float x,
  93. /* [in] */ float y,
  94. /* [in] */ float z,
  95. /* [in] */ long applyFlag);
  96. private:
  97. DECL_VARIABLE(_dxj_DirectSound3dBuffer);
  98. public:
  99. DX3J_GLOBAL_LINKS( _dxj_DirectSound3dBuffer )
  100. };