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.

61 lines
2.0 KiB

  1. //
  2. //
  3. //
  4. #ifndef _MicArrayp_
  5. #define _MicArrayp_
  6. #include "dsdmobse.h"
  7. #include "dmocom.h"
  8. #include "dsdmo.h"
  9. #include "PropertyHelp.h"
  10. #include "param.h"
  11. class CDirectSoundCaptureMicArrayDMO :
  12. public CDirectSoundDMO,
  13. public CParamsManager,
  14. public IDirectSoundCaptureFXMicArray,
  15. public CComBase
  16. {
  17. public:
  18. CDirectSoundCaptureMicArrayDMO( IUnknown *pUnk, HRESULT *phr );
  19. ~CDirectSoundCaptureMicArrayDMO();
  20. DECLARE_IUNKNOWN;
  21. STDMETHODIMP NDQueryInterface(REFIID riid, void **ppv);
  22. static CComBase* WINAPI CreateInstance(IUnknown *pUnk, HRESULT *phr);
  23. // InitOnCreation is called by the class factory to give the object a chance to initialize
  24. // immediately after it is created. This is used to prepare the object's parameter information.
  25. HRESULT InitOnCreation();
  26. // The Init function is an override from the CPCMDMO base class and it provides initialization
  27. // for the effect's actual audio processing. Note that InputType must have been set before this
  28. // occurs in order for this to work.
  29. HRESULT Init();
  30. STDMETHOD(Clone) (THIS_ IMediaObjectInPlace **);
  31. /* IFilter */
  32. STDMETHOD(SetAllParameters) (THIS_ LPCDSCFXMicArray);
  33. STDMETHOD(GetAllParameters) (THIS_ LPDSCFXMicArray);
  34. // IMediaParams overrides
  35. STDMETHOD(SetParam) (THIS_ DWORD dwParamIndex, MP_DATA value, bool fSkipPasssingToParamManager = false);
  36. STDMETHOD(GetParam) (THIS_ DWORD dwParamIndex, MP_DATA* value);
  37. // All of these methods are called by the base class
  38. HRESULT FBRProcess(DWORD cQuanta, BYTE *pIn, BYTE *pOut);
  39. HRESULT Discontinuity();
  40. HRESULT ProcessInPlace(ULONG ulQuanta, LPBYTE pcbData, REFERENCE_TIME rtStart, DWORD dwFlags);
  41. BOOL m_fDirty;
  42. private:
  43. BOOL m_fEnable;
  44. BOOL m_fReset;
  45. BOOL m_bInitialized;
  46. };
  47. EXT_STD_CAPTURE_CREATE(MicArray);
  48. #endif