]> git.tdb.fi Git - libs/al.git/blobdiff - source/context.cpp
Drop copyright notices and Id tags from source files
[libs/al.git] / source / context.cpp
index aa316fd89e49dcb64b0909c1be74de3d76aafa21..14f607cdd9778a6cdcb87bef5aaadc43c9ed5057 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspal
-Copyright © 2008 Mikko Rasa, Mikkosoft Productions
-Diestributed under the LGPL
-*/
-
 #include <msp/core/except.h>
 #include "context.h"
 #include "device.h"
@@ -14,12 +7,17 @@ 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");
 
        alcMakeContextCurrent(context);
 }
 
+Context::~Context()
+{
+       alcDestroyContext(context);
+}
+
 } // namespace AL
 } // namespace Msp