]> git.localhorst.tv Git - blank.git/blobdiff - src/audio/ALError.hpp
some experiments with sound
[blank.git] / src / audio / ALError.hpp
diff --git a/src/audio/ALError.hpp b/src/audio/ALError.hpp
new file mode 100644 (file)
index 0000000..973bcef
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef BLANK_AUDIO_ALERROR_HPP_
+#define BLANK_AUDIO_ALERROR_HPP_
+
+#include <al.h>
+#include <stdexcept>
+#include <string>
+
+
+namespace blank {
+
+class ALError
+: public std::runtime_error {
+
+public:
+       explicit ALError(ALenum);
+       ALError(ALenum, const std::string &);
+
+};
+
+}
+
+#endif