Initial commit
[camargo/neiasound.git] / src / nSoundBuffer.h
1 #ifndef NSOUNDBUFFER_H
2 #define NSOUNDBUFFER_H
3
4 #include <QObject>
5 #include "nSoundFormat.h"
6
7 class nSoundSystem;
8 class nSoundBag;
9 class nSoundStream;
10
11 class nSoundBuffer : public QObject
12 {
13     Q_OBJECT
14     Q_PROPERTY(unsigned int openalHandle READ openalHandle)
15 public:
16     explicit nSoundBuffer(QString name, nSoundSystem * parent);
17     virtual ~nSoundBuffer();
18
19     unsigned int openalHandle(){return m_handle;}
20
21     void setData(nSoundBag * bag);
22     void setData(nSoundStream * stream);
23
24     int openalFormat(nSoundFormat format);
25
26 signals:
27
28 public slots:
29
30 private:
31     unsigned int m_handle;
32 };
33
34 #endif // NSOUNDBUFFER_H