nebu_source3d.h

来自「小游戏 linux very happy」· C头文件 代码 · 共 46 行

H
46
字号
#ifndef NEBU_Sound_Source3D_H#define NEBU_Sound_Source3D_H#include "nebu_Sound.h"#include "nebu_SoundSystem.h"#include "nebu_SourceSample.h"#include "base/nebu_Vector3.h"#define USOUND 50#define EPSILON 0.1f	 #define SOUND_VOL_THRESHOLD 0.1#define VOLSCALE_BASE 1000namespace Sound {  class Source3D : public Source {   public:    Source3D(System *system, SourceSample *source) {       _system = system;       _source = source;      _location = Vector3(0,0,0);      _velocity = Vector3(0,0,0);      _position = 0;    };    Vector3 _location;    Vector3 _velocity;    SourceSample* _source;    virtual int Mix(Uint8 *data, int len);    virtual void GetModifiers(float &fPan, float &fVolume, float &fShift);    //  protected:    int _position;  protected:    Source3D() {      _location = Vector3(0,0,0);      _velocity = Vector3(0,0,0);      _position = 0;    };  };}#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?