📄 dscapturedriver.h
字号:
//////////////////////////////////////////////////////////////////////////////
/*****************************************************************************
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
Copyright (c) 1995-2000 Microsoft Corporation
Module Name:
DsCaptureDriverImp.h
Abstract:
Declaration file for the
DsCaptureDriver
class.
Revision History:
coscor 7/5/2000
*****************************************************************************/
//////////////////////////////////////////////////////////////////////////////
#pragma once
#ifndef DS_CAPTUREDRIVER_H__
#define DS_CAPTUREDRIVER_H__
#include "CX5530Audio.h" // Added by ClassView
class DsCaptureDriver : public IDsCaptureDriver
{
public:
//IUnknown implementation
STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *);
STDMETHOD_(ULONG,AddRef) (THIS);
STDMETHOD_(ULONG,Release) (THIS);
//IDsCaptureDriver methods
STDMETHOD(GetDriverDesc) (THIS_ PDSDRIVERDESC );
STDMETHOD(Open) (THIS );
STDMETHOD(Close) (THIS );
STDMETHOD(GetCaps) (THIS_ PDSCDRIVERCAPS );
STDMETHOD(CreateCaptureBuffer) (THIS_ LPWAVEFORMATEX, DWORD, DWORD, LPDWORD, LPBYTE *, LPVOID * );
DsCaptureDriver(HRESULT &hr);
~DsCaptureDriver();
// Put any public data specific to the device here where the other classes
// in the driver can access it.
private:
CCX5530Audio* m_pCX5530;
ULONG m_ulRefCount;
// Since these will only be called from within this class, they do
// not need to be published.
// Put any private data specific to the device here.
// Hide stuff here that the rest of the driver doesn't need to know about.
bool m_bOpened; //var. used to ensure device is opened before createsoundbuffer
// Note that drivers need to be thread safe, so we must protect
// critical data so it works under access from multiple threads.
CRITICAL_SECTION m_csSoundBuffer;
};
#endif // DS_CAPTUREDRIVER_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -