nebu_sourcesample.h

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

H
34
字号
#ifndef NEBU_Sound_SourceSample_H#define NEBU_Sound_SourceSample_H#include "nebu_Sound.h"#include "nebu_Source.h"#include "nebu_SoundSystem.h"namespace Sound {  class SourceSample : public Source {  public:    SourceSample(System *system);    virtual ~SourceSample();    void Load(char *filename);    virtual int Mix(Uint8 *data, int len);    Uint8* _buffer;    int _buffersize;  protected:    virtual void Reset() { _position = 0; }        private:    int _position;    int _decoded;  };}#endif

⌨️ 快捷键说明

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