blob: 7ed407b8968a06031bf2a48372f6c8653082dac5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#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
|