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.

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