]> git.tdb.fi Git - libs/al.git/blobdiff - source/device.cpp
Use standard exception classes
[libs/al.git] / source / device.cpp
index 63e87a98dbe509febd59ba665f60be05ae7c9e56..c866b32f704e620c5c331dc6b34182e84e6b8f48 100644 (file)
@@ -1,4 +1,4 @@
-#include <msp/core/except.h>
+#include <stdexcept>
 #include "device.h"
 
 using namespace std;
@@ -10,14 +10,14 @@ Device::Device()
 {
        dev = alcOpenDevice(0);
        if(!dev)
-               throw Exception("Couldn't get OpenAL device");
+               throw runtime_error("Couldn't get OpenAL device");
 }
 
 Device::Device(const string &spec)
 {
        dev = alcOpenDevice(spec.c_str());
        if(!dev)
-               throw Exception("Couldn't get OpenAL device");
+               throw runtime_error("Couldn't get OpenAL device");
 }
 
 Device::~Device()