X-Git-Url: http://git.tdb.fi/?p=libs%2Fal.git;a=blobdiff_plain;f=source%2Fdevice.cpp;h=c866b32f704e620c5c331dc6b34182e84e6b8f48;hp=63e87a98dbe509febd59ba665f60be05ae7c9e56;hb=dfec8f9568d11c432038d55f3ceb35d59614777d;hpb=14008b157c64752ba7c1cef831124992c35c4646 diff --git a/source/device.cpp b/source/device.cpp index 63e87a9..c866b32 100644 --- a/source/device.cpp +++ b/source/device.cpp @@ -1,4 +1,4 @@ -#include +#include #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()