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.

66 lines
2.3 KiB

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