mirror of https://github.com/tongzx/nt5src
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
72 lines
2.4 KiB
/////////////////////////////////////////////////////////////////////////////
|
|
// INTEL Corporation Proprietary Information
|
|
// This listing is supplied under the terms of a license agreement with Intel
|
|
// Corporation and many not be copied nor disclosed except in accordance
|
|
// with the terms of that agreement.
|
|
// Copyright (c) 1995, 1996 Intel Corporation.
|
|
//
|
|
//
|
|
// Module Name: gen_arcv.h
|
|
// Environment: MSVC 4.0, OLE 2
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
#ifndef GEN_A_RCV_H
|
|
#define GEN_A_RCV_H
|
|
|
|
#include "ppmrcv.h"
|
|
#include "ppmclsid.h"
|
|
#include "gen_arcv.h"
|
|
|
|
#define GEN_A_BUFFER_SIZE 5000
|
|
#define DO_NOT_PROCESS 5
|
|
|
|
class Generic_a_ppmReceive : public ppmReceive
|
|
{
|
|
|
|
private:
|
|
BOOL m_FirstAudioChunk;
|
|
public:
|
|
|
|
Generic_a_ppmReceive(IUnknown* pUnkOuter,
|
|
IUnknown** ppUnkInner);
|
|
~Generic_a_ppmReceive();
|
|
|
|
DECLARE_CREATEPROC()
|
|
|
|
STDMETHODIMP_( const CLSID& ) GetCLSID( void ) const {return CLSID_GEN_A_PPMReceive;}
|
|
|
|
STDMETHODIMP QueryInterface( REFIID riid, LPVOID FAR* ppvObj )
|
|
{return CUnknown::QueryInterface(riid, ppvObj);}
|
|
|
|
STDMETHODIMP GetInterface( REFIID riid, LPVOID FAR* ppvObj )
|
|
{return ppmReceive::GetInterface( riid, ppvObj );}
|
|
|
|
STDMETHODIMP_( ULONG )AddRef( void )
|
|
{return CUnknown::AddRef();}
|
|
|
|
STDMETHODIMP_( ULONG )Release( void )
|
|
{return CUnknown::Release();}
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
//TimeToProcessMessages:
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
virtual BOOL TimeToProcessMessages(FragDescriptor *pFragDescrip, MsgHeader *pMsgHdr);
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
//CheckMessageComplete:
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
virtual int CheckMessageComplete(MsgHeader *pMsgHdr);
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
//ProcessMessages:
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
virtual HRESULT ProcessMessages(void);
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
//PartialMessageHandler: deals with partial messages
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
virtual HRESULT PartialMessageHandler(MsgHeader *pMsgHdr);
|
|
|
|
};
|
|
|
|
|
|
#endif
|