📄 sound.h
字号:
/* sound system * Template CS game * (C)2002 Mat Sutcliffe. See license.txt for license info (GPL). */#ifndef __SOUND_H__#define __SOUND_H__#include <csutil/ref.h>#include <isound/renderer.h>#include <isound/source.h>#include <csutil/hashmap.h>#include <iutil/objreg.h>class Sound { private: csRef<iObjectRegistry> objreg; csRef<iSoundRender> render; csHashMap *handles; public: Sound(iObjectRegistry *); ~Sound(); csPtr<iSoundSource> GetSource(char *, int mode = SOUND3D_ABSOLUTE); /* Return an iSoundSource which can be manipulated in 3D space and * played. The string given is looked up in the config and the * referenced sound file is used. For example: * In config: Game.Sound.rocket1 = sound/rocket1.wav * In code: sound->GetSource("rocket1"); * Remeber to DecRef() the soundsource when finished with it. */};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -