]> git.localhorst.tv Git - blank.git/blobdiff - src/app/init.hpp
some experiments with sound
[blank.git] / src / app / init.hpp
index 122210d1e96bc426a33de8b8a6fb938eda02976e..13bffa1f30e8886087ac441319f0f9af766f8aa3 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef BLANK_APP_INIT_HPP_
 #define BLANK_APP_INIT_HPP_
 
+#include <al.h>
 #include <SDL.h>
 #include <stdexcept>
 #include <string>
@@ -8,6 +9,15 @@
 
 namespace blank {
 
+class AlutError
+: public std::runtime_error {
+
+public:
+       explicit AlutError(ALenum);
+       AlutError(ALenum, const std::string &);
+
+};
+
 class SDLError
 : public std::runtime_error {
 
@@ -54,6 +64,18 @@ public:
 };
 
 
+class InitAL {
+
+public:
+       InitAL();
+       ~InitAL();
+
+       InitAL(const InitAL &) = delete;
+       InitAL &operator =(const InitAL &) = delete;
+
+};
+
+
 class InitGL {
 
 public:
@@ -123,6 +145,7 @@ struct Init {
        InitSDL init_sdl;
        InitIMG init_img;
        InitTTF init_ttf;
+       InitAL init_al;
        InitGL init_gl;
        Window window;
        GLContext ctx;