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.

76 lines
2.6 KiB

  1. /***************************************************************************
  2. *
  3. * Copyright (C) 1999-2001 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: aecp.h
  6. * Content: Acoustic Echo Cancellation DMO declarations.
  7. *
  8. ***************************************************************************/
  9. #ifndef _Aecp_
  10. #define _Aecp_
  11. #include "dsdmobse.h"
  12. #include "dmocom.h"
  13. #include "dsdmo.h"
  14. #include "PropertyHelp.h"
  15. #include "param.h"
  16. #include "aecdbgprop.h"
  17. class CDirectSoundCaptureAecDMO :
  18. public CDirectSoundDMO,
  19. public CParamsManager,
  20. public IDirectSoundCaptureFXAec,
  21. public IDirectSoundCaptureFXMsAecPrivate,
  22. public CComBase
  23. {
  24. public:
  25. CDirectSoundCaptureAecDMO(IUnknown *pUnk, HRESULT *phr);
  26. ~CDirectSoundCaptureAecDMO();
  27. DECLARE_IUNKNOWN;
  28. STDMETHODIMP NDQueryInterface(REFIID riid, void **ppv);
  29. static CComBase* WINAPI CreateInstance(IUnknown *pUnk, HRESULT *phr);
  30. // InitOnCreation is called by the class factory to give the object a chance to initialize
  31. // immediately after it is created. This is used to prepare the object's parameter information.
  32. HRESULT InitOnCreation();
  33. // The Init function is an override from the CPCMDMO base class and it provides initialization
  34. // for the effect's actual audio processing. Note that InputType must have been set before this
  35. // occurs in order for this to work.
  36. HRESULT Init();
  37. STDMETHOD(Clone) (THIS_ IMediaObjectInPlace **);
  38. // IDirectSoundCaptureFXAec methods
  39. STDMETHOD(SetAllParameters) (THIS_ LPCDSCFXAec);
  40. STDMETHOD(GetAllParameters) (THIS_ LPDSCFXAec);
  41. STDMETHOD(GetStatus) (THIS_ PDWORD pdwStatus);
  42. STDMETHOD(Reset) (THIS);
  43. // IMediaParams methods
  44. STDMETHOD(SetParam) (THIS_ DWORD dwParamIndex, MP_DATA value, bool fSkipPasssingToParamManager = false);
  45. STDMETHOD(GetParam) (THIS_ DWORD dwParamIndex, MP_DATA* value);
  46. // All of these methods are called by the base class
  47. HRESULT FBRProcess(DWORD cQuanta, BYTE *pIn, BYTE *pOut);
  48. HRESULT Discontinuity();
  49. HRESULT ProcessInPlace(ULONG ulQuanta, LPBYTE pcbData, REFERENCE_TIME rtStart, DWORD dwFlags);
  50. // IDirectSoundCaptureFXMsAecPrivate methods
  51. //STDMETHOD(SetAllParameters) (THIS_ LPCDSCFXMsAecPrivate);
  52. STDMETHOD(GetSynchStreamFlag) (THIS_ PBOOL);
  53. STDMETHOD(GetNoiseMagnitude) (THIS_ PVOID, ULONG, PULONG);
  54. private:
  55. BOOL m_fDirty;
  56. BOOL m_bInitialized;
  57. BOOL m_fEnable;
  58. BOOL m_fNfEnable;
  59. DWORD m_dwMode;
  60. };
  61. EXT_STD_CAPTURE_CREATE(Aec);
  62. #endif