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.

130 lines
4.6 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 LPDIRECTSOUND3DBUFFER8
  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 getDirectSoundBuffer(
  40. /* [retval][out] */ I_dxj_DirectSoundBuffer __RPC_FAR *__RPC_FAR *retVal);
  41. HRESULT STDMETHODCALLTYPE getAllParameters(
  42. /* [out][in] */ DS3DBUFFER_CDESC __RPC_FAR *buffer);
  43. HRESULT STDMETHODCALLTYPE getConeAngles(
  44. /* [out][in] */ long __RPC_FAR *inCone,
  45. /* [out][in] */ long __RPC_FAR *outCone);
  46. HRESULT STDMETHODCALLTYPE getConeOrientation(
  47. /* [out][in] */ D3DVECTOR_CDESC __RPC_FAR *orientation);
  48. HRESULT STDMETHODCALLTYPE getConeOutsideVolume(
  49. /* [retval][out] */ long __RPC_FAR *coneOutsideVolume);
  50. HRESULT STDMETHODCALLTYPE getMaxDistance(
  51. /* [retval][out] */ float __RPC_FAR *maxDistance);
  52. HRESULT STDMETHODCALLTYPE getMinDistance(
  53. /* [retval][out] */ float __RPC_FAR *minDistance);
  54. HRESULT STDMETHODCALLTYPE getMode(
  55. /* [retval][out] */ long __RPC_FAR *mode);
  56. HRESULT STDMETHODCALLTYPE getPosition(
  57. /* [out][in] */ D3DVECTOR_CDESC __RPC_FAR *position);
  58. HRESULT STDMETHODCALLTYPE getVelocity(
  59. /* [out][in] */ D3DVECTOR_CDESC __RPC_FAR *velocity);
  60. HRESULT STDMETHODCALLTYPE setAllParameters(
  61. /* [in] */ DS3DBUFFER_CDESC __RPC_FAR *buffer,
  62. /* [in] */ long applyFlag);
  63. HRESULT STDMETHODCALLTYPE setConeAngles(
  64. /* [in] */ long inCone,
  65. /* [in] */ long outCone,
  66. /* [in] */ long applyFlag);
  67. HRESULT STDMETHODCALLTYPE setConeOrientation(
  68. /* [in] */ float x,
  69. /* [in] */ float y,
  70. /* [in] */ float z,
  71. /* [in] */ long applyFlag);
  72. HRESULT STDMETHODCALLTYPE setConeOutsideVolume(
  73. /* [in] */ long coneOutsideVolume,
  74. /* [in] */ long applyFlag);
  75. HRESULT STDMETHODCALLTYPE setMaxDistance(
  76. /* [in] */ float maxDistance,
  77. /* [in] */ long applyFlag);
  78. HRESULT STDMETHODCALLTYPE setMinDistance(
  79. /* [in] */ float minDistance,
  80. /* [in] */ long applyFlag);
  81. HRESULT STDMETHODCALLTYPE setMode(
  82. /* [in] */ long mode,
  83. /* [in] */ long applyFlag);
  84. HRESULT STDMETHODCALLTYPE setPosition(
  85. /* [in] */ float x,
  86. /* [in] */ float y,
  87. /* [in] */ float z,
  88. /* [in] */ long applyFlag);
  89. HRESULT STDMETHODCALLTYPE setVelocity(
  90. /* [in] */ float x,
  91. /* [in] */ float y,
  92. /* [in] */ float z,
  93. /* [in] */ long applyFlag);
  94. private:
  95. DECL_VARIABLE(_dxj_DirectSound3dBuffer);
  96. public:
  97. DX3J_GLOBAL_LINKS( _dxj_DirectSound3dBuffer )
  98. };