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.

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