?? soundlayer.h
字號(hào):
/*******************************************************************
* Advanced 3D Game Programming using DirectX 9.0
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* copyright (c) 2003 by Peter A Walsh and Adrian Perez
* See license.txt for modification and distribution information
******************************************************************/
#ifndef _SOUNDLAYER_H
#define _SOUNDLAYER_H
#include <dsound.h>
#include "GameErrors.h" // Added by ClassView
class cSound;
class cSoundLayer
{
LPDIRECTSOUND8 m_pDSound;
LPDIRECTSOUNDBUFFER8 m_pPrimary; // primary mixer
static cSoundLayer* m_pGlobalSLayer;
cSoundLayer( HWND hWnd );
public:
virtual ~cSoundLayer();
static cSoundLayer* GetSound()
{
return m_pGlobalSLayer;
}
LPDIRECTSOUND8 GetDSound()
{
return m_pDSound;
}
static void Create( HWND hWnd )
{
new cSoundLayer( hWnd );
}
};
inline cSoundLayer* Sound()
{
return cSoundLayer::GetSound();
}
#endif //_SOUNDLAYER_H
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -