]> git.tdb.fi Git - libs/al.git/blobdiff - source/context.cpp
Use standard exception classes
[libs/al.git] / source / context.cpp
index 847680a20a338c7439be2beb3fed0a3f54a081b7..4c9b77cd23300bbbaefbf805057b012095ac227e 100644 (file)
@@ -1,11 +1,4 @@
-/* $Id$
-
-This file is part of libmspal
-Copyright © 2008 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#include <msp/core/except.h>
+#include <stdexcept>
 #include "context.h"
 #include "device.h"
 
@@ -14,9 +7,9 @@ namespace AL {
 
 Context::Context(Device &dev)
 {
-       context=alcCreateContext(dev.get_device(), 0);
+       context = alcCreateContext(dev.get_device(), 0);
        if(!context)
-               throw Exception("Couldn't create OpenAL context");
+               throw std::runtime_error("Couldn't create OpenAL context");
 
        alcMakeContextCurrent(context);
 }