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.

72 lines
2.4 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // INTEL Corporation Proprietary Information
  3. // This listing is supplied under the terms of a license agreement with Intel
  4. // Corporation and many not be copied nor disclosed except in accordance
  5. // with the terms of that agreement.
  6. // Copyright (c) 1995, 1996 Intel Corporation.
  7. //
  8. //
  9. // Module Name: gen_arcv.h
  10. // Environment: MSVC 4.0, OLE 2
  11. /////////////////////////////////////////////////////////////////////////////////
  12. #ifndef GEN_A_RCV_H
  13. #define GEN_A_RCV_H
  14. #include "ppmrcv.h"
  15. #include "ppmclsid.h"
  16. #include "gen_arcv.h"
  17. #define GEN_A_BUFFER_SIZE 5000
  18. #define DO_NOT_PROCESS 5
  19. class Generic_a_ppmReceive : public ppmReceive
  20. {
  21. private:
  22. BOOL m_FirstAudioChunk;
  23. public:
  24. Generic_a_ppmReceive(IUnknown* pUnkOuter,
  25. IUnknown** ppUnkInner);
  26. ~Generic_a_ppmReceive();
  27. DECLARE_CREATEPROC()
  28. STDMETHODIMP_( const CLSID& ) GetCLSID( void ) const {return CLSID_GEN_A_PPMReceive;}
  29. STDMETHODIMP QueryInterface( REFIID riid, LPVOID FAR* ppvObj )
  30. {return CUnknown::QueryInterface(riid, ppvObj);}
  31. STDMETHODIMP GetInterface( REFIID riid, LPVOID FAR* ppvObj )
  32. {return ppmReceive::GetInterface( riid, ppvObj );}
  33. STDMETHODIMP_( ULONG )AddRef( void )
  34. {return CUnknown::AddRef();}
  35. STDMETHODIMP_( ULONG )Release( void )
  36. {return CUnknown::Release();}
  37. //////////////////////////////////////////////////////////////////////////////////////////
  38. //TimeToProcessMessages:
  39. //////////////////////////////////////////////////////////////////////////////////////////
  40. virtual BOOL TimeToProcessMessages(FragDescriptor *pFragDescrip, MsgHeader *pMsgHdr);
  41. //////////////////////////////////////////////////////////////////////////////////////////
  42. //CheckMessageComplete:
  43. //////////////////////////////////////////////////////////////////////////////////////////
  44. virtual int CheckMessageComplete(MsgHeader *pMsgHdr);
  45. //////////////////////////////////////////////////////////////////////////////////////////
  46. //ProcessMessages:
  47. //////////////////////////////////////////////////////////////////////////////////////////
  48. virtual HRESULT ProcessMessages(void);
  49. //////////////////////////////////////////////////////////////////////////////////////////
  50. //PartialMessageHandler: deals with partial messages
  51. //////////////////////////////////////////////////////////////////////////////////////////
  52. virtual HRESULT PartialMessageHandler(MsgHeader *pMsgHdr);
  53. };
  54. #endif