X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcontext.cpp;h=4c9b77cd23300bbbaefbf805057b012095ac227e;hb=dfec8f9568d11c432038d55f3ceb35d59614777d;hp=847680a20a338c7439be2beb3fed0a3f54a081b7;hpb=58dc1e7c15f928d0f861a20c46f2be4112bf5baf;p=libs%2Fal.git diff --git a/source/context.cpp b/source/context.cpp index 847680a..4c9b77c 100644 --- a/source/context.cpp +++ b/source/context.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 "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); }