]> git.localhorst.tv Git - blank.git/blobdiff - src/audio/Sound.hpp
some experiments with sound
[blank.git] / src / audio / Sound.hpp
diff --git a/src/audio/Sound.hpp b/src/audio/Sound.hpp
new file mode 100644 (file)
index 0000000..abbb27b
--- /dev/null
@@ -0,0 +1,32 @@
+#ifndef BLANK_AUDIO_SOUND_HPP_
+#define BLANK_AUDIO_SOUND_HPP_
+
+#include <al.h>
+
+
+namespace blank {
+
+class Sound {
+
+public:
+       Sound();
+       explicit Sound(const char *);
+       ~Sound();
+
+       Sound(Sound &&);
+       Sound &operator =(Sound &&);
+
+       Sound(const Sound &) = delete;
+       Sound &operator =(const Sound &) = delete;
+
+public:
+       void Bind(ALuint src) const;
+
+private:
+       ALuint handle;
+
+};
+
+}
+
+#endif