Source code of Windows XP (NT5)
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.

97 lines
2.3 KiB

  1. /*++
  2. Copyright (c) 1997-2000 Microsoft Corporation All Rights Reserved
  3. Module Name:
  4. minwave.h
  5. Abstract:
  6. Definition of wavecyclic miniport class.
  7. --*/
  8. #ifndef _MSVAD_MINWAVE_H_
  9. #define _MSVAD_MINWAVE_H_
  10. #include "basewave.h"
  11. //=============================================================================
  12. // Referenced Forward
  13. //=============================================================================
  14. class CMiniportWaveCyclicStream;
  15. typedef CMiniportWaveCyclicStream *PCMiniportWaveCyclicStream;
  16. //=============================================================================
  17. // Classes
  18. //=============================================================================
  19. ///////////////////////////////////////////////////////////////////////////////
  20. // CMiniportWaveCyclic
  21. //
  22. class CMiniportWaveCyclic :
  23. public CMiniportWaveCyclicMSVAD,
  24. public IMiniportWaveCyclic,
  25. public CUnknown
  26. {
  27. private:
  28. BOOL m_fCaptureAllocated;
  29. BOOL m_fRenderAllocated;
  30. protected:
  31. NTSTATUS ValidateFormat
  32. (
  33. IN PKSDATAFORMAT pDataFormat
  34. );
  35. NTSTATUS ValidateWfxExt
  36. (
  37. IN PWAVEFORMATEXTENSIBLE pWfxExt
  38. );
  39. public:
  40. DECLARE_STD_UNKNOWN();
  41. DEFINE_STD_CONSTRUCTOR(CMiniportWaveCyclic);
  42. ~CMiniportWaveCyclic();
  43. IMP_IMiniportWaveCyclic;
  44. // Friends
  45. friend class CMiniportWaveCyclicStream;
  46. friend class CMiniportTopologySimple;
  47. };
  48. typedef CMiniportWaveCyclic *PCMiniportWaveCyclic;
  49. ///////////////////////////////////////////////////////////////////////////////
  50. // CMiniportWaveCyclicStream
  51. //
  52. class CMiniportWaveCyclicStream :
  53. public CMiniportWaveCyclicStreamMSVAD,
  54. public CUnknown
  55. {
  56. protected:
  57. PCMiniportWaveCyclic m_pMiniportLocal;
  58. public:
  59. DECLARE_STD_UNKNOWN();
  60. DEFINE_STD_CONSTRUCTOR(CMiniportWaveCyclicStream);
  61. ~CMiniportWaveCyclicStream();
  62. NTSTATUS Init
  63. (
  64. IN PCMiniportWaveCyclic Miniport,
  65. IN ULONG Channel,
  66. IN BOOLEAN Capture,
  67. IN PKSDATAFORMAT DataFormat
  68. );
  69. // Friends
  70. friend class CMiniportWaveCyclic;
  71. };
  72. typedef CMiniportWaveCyclicStream *PCMiniportWaveCyclicStream;
  73. #endif