X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdevice.cpp;h=c866b32f704e620c5c331dc6b34182e84e6b8f48;hb=dfec8f9568d11c432038d55f3ceb35d59614777d;hp=dcc78f1aa949b37dbe173adf96a3cb140e1f41ff;hpb=58dc1e7c15f928d0f861a20c46f2be4112bf5baf;p=libs%2Fal.git diff --git a/source/device.cpp b/source/device.cpp index dcc78f1..c866b32 100644 --- a/source/device.cpp +++ b/source/device.cpp @@ -1,11 +1,4 @@ -/* $Id$ - -This file is part of libmspal -Copyright © 2008 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#include +#include #include "device.h" using namespace std; @@ -15,16 +8,16 @@ namespace AL { Device::Device() { - dev=alcOpenDevice(0); + 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()); + dev = alcOpenDevice(spec.c_str()); if(!dev) - throw Exception("Couldn't get OpenAL device"); + throw runtime_error("Couldn't get OpenAL device"); } Device::~Device()