DSDriverInfoObject.h
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1998-1999 DXGuide. All Rights Reserved.
- // File: DSDriverInfoObject.h
- #ifndef _DSDRIVERINFOOBJECT__H
- #define _DSDRIVERINFOOBJECT__H
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- #include "DXDriverInfoObject.h"
- // turn off warnings for /W4
- #pragma warning(disable: 4201)
- #include <mmsystem.h>
- #pragma warning(default: 4201)
- #pragma warning(disable: 4201)
- #include <dsound.h> // for DSCAPS
- #pragma warning(default: 4201)
- class CDSDriverInfoObject : public CDXDriverInfoObject
- {
- friend class CDirectSound;
- protected:
- CDSDriverInfoObject(void);
- virtual ~CDSDriverInfoObject();
- protected:
- void SetCaps(const DSCAPS* pDSCaps);
- public:
- DSCAPS const* GetCaps(void) const;
- // detect emulation or native
- bool IsEmulationMode(void);
- protected:
- DSCAPS* m_pDSCaps;
- };
- #include "DSDriverInfoObject.inl"
- #endif // _DSDRIVERINFOOBJECT__H