LXRAD 0.7
lxaudio.h
1
2#ifndef LXAUDIO_H
3#define LXAUDIO_H
4
5#include <AL/al.h>
6
7#define MAXBUFF 8
8
9class lxaudio {
10private:
11 int bstatus[MAXBUFF];
12 ALuint buf[MAXBUFF];
13 ALuint src;
14 int bcount;
15 void CleanBuffers(void);
16 int GetFreeBuffer(void);
17public:
18 static int open;
19 void Init(int bcount_ = 4);
20 void End(void);
21
22 unsigned int GetSampleRate(void);
23 unsigned int GetMax(void);
24
25 void BeepStart(float freq = 440, float volume = 1.0, int type = 0);
26 void BeepStop(void);
27
28 int IsPlaying(void);
29 int SoundPlay(short * samples, size_t buf_size);
30};
31
32
33#endif /* LXAUDIO_H */
34
Definition: lxaudio.h:9