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.

92 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. wavecall.h
  5. Abstract:
  6. Declaration of the CWaveMSPCall
  7. Author:
  8. Zoltan Szilagyi September 7th, 1998
  9. --*/
  10. #ifndef __WAVECALL_H_
  11. #define __WAVECALL_H_
  12. #if _MSC_VER >= 1000
  13. #pragma once
  14. #endif // _MSC_VER >= 1000
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CWaveMSPCall
  17. /////////////////////////////////////////////////////////////////////////////
  18. class CWaveMSPCall : public CMSPCallMultiGraph, public CMSPObjectSafetyImpl
  19. {
  20. public:
  21. // DECLARE_POLY_AGGREGATABLE(CWaveMSP)
  22. // To add extra interfaces to this class, use the following:
  23. BEGIN_COM_MAP(CWaveMSPCall)
  24. COM_INTERFACE_ENTRY( IObjectSafety )
  25. COM_INTERFACE_ENTRY_CHAIN(CMSPCallMultiGraph)
  26. END_COM_MAP()
  27. public:
  28. CWaveMSPCall();
  29. virtual ~CWaveMSPCall();
  30. virtual ULONG MSPCallAddRef(void);
  31. virtual ULONG MSPCallRelease(void);
  32. virtual HRESULT Init(
  33. IN CMSPAddress * pMSPAddress,
  34. IN MSP_HANDLE htCall,
  35. IN DWORD dwReserved,
  36. IN DWORD dwMediaType
  37. );
  38. virtual HRESULT CreateStreamObject(
  39. IN DWORD dwMediaType,
  40. IN TERMINAL_DIRECTION Direction,
  41. IN IMediaEvent * pGraph,
  42. IN ITStream ** ppStream
  43. );
  44. virtual HRESULT ReceiveTSPCallData(
  45. IN PBYTE pBuffer,
  46. IN DWORD dwSize
  47. );
  48. //
  49. // We override these to make sure the number of
  50. // streams we have is constant.
  51. //
  52. STDMETHOD (CreateStream) (
  53. IN long lMediaType,
  54. IN TERMINAL_DIRECTION Direction,
  55. IN OUT ITStream ** ppStream
  56. );
  57. STDMETHOD (RemoveStream) (
  58. IN ITStream * pStream
  59. );
  60. protected:
  61. //
  62. // Protected data members.
  63. //
  64. CWaveMSPStream * m_pRenderStream;
  65. CWaveMSPStream * m_pCaptureStream;
  66. };
  67. #endif //__WAVEADDR_H_