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.

95 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. PCMiniportWaveCyclicStream m_pStream[MAX_INPUT_STREAMS];
  29. BOOL m_fCaptureAllocated;
  30. public:
  31. DECLARE_STD_UNKNOWN();
  32. DEFINE_STD_CONSTRUCTOR(CMiniportWaveCyclic);
  33. ~CMiniportWaveCyclic();
  34. IMP_IMiniportWaveCyclic;
  35. NTSTATUS PropertyHandlerGeneric
  36. (
  37. IN PPCPROPERTY_REQUEST PropertyRequest
  38. );
  39. NTSTATUS PropertyHandlerSamplingRate
  40. (
  41. IN PPCPROPERTY_REQUEST PropertyRequest
  42. );
  43. // Friends
  44. friend class CMiniportWaveCyclicStream;
  45. friend class CMiniportTopologySimple;
  46. };
  47. typedef CMiniportWaveCyclic *PCMiniportWaveCyclic;
  48. ///////////////////////////////////////////////////////////////////////////////
  49. // CMiniportWaveCyclicStream
  50. //
  51. class CMiniportWaveCyclicStream :
  52. public CMiniportWaveCyclicStreamMSVAD,
  53. public CUnknown
  54. {
  55. protected:
  56. PCMiniportWaveCyclic m_pMiniportLocal;
  57. public:
  58. DECLARE_STD_UNKNOWN();
  59. DEFINE_STD_CONSTRUCTOR(CMiniportWaveCyclicStream);
  60. ~CMiniportWaveCyclicStream();
  61. NTSTATUS Init
  62. (
  63. IN PCMiniportWaveCyclic Miniport,
  64. IN ULONG Channel,
  65. IN BOOLEAN Capture,
  66. IN PKSDATAFORMAT DataFormat
  67. );
  68. // Friends
  69. friend class CMiniportWaveCyclic;
  70. };
  71. typedef CMiniportWaveCyclicStream *PCMiniportWaveCyclicStream;
  72. #endif