nullsound.h
来自「这是整套横扫千军3D版游戏的源码」· C头文件 代码 · 共 24 行
H
24 行
#ifndef NULL_SOUND_H
#define NULL_SOUND_H
#include "../Sound.h"
// Null sound system
class CNullSound : public CSound
{
public:
CNullSound() { return; }
~CNullSound() { return; }
unsigned int GetWaveId(const std::string& path, bool hardFail) { return 0; }
void Update() { return; }
void PlaySample(int id, float volume=1) { return; }
void PlaySample(int id,const float3& p,float volume=1) { return; }
void PlayStream(const std::string& path, float volume,
const float3& pos, bool loop) { return; }
void StopStream() { return; }
void SetVolume (float vol) { return; }
};
#endif // NULL_SOUND_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?