3 This file is part of libmspal
4 Copyright © 2008 Mikko Rasa, Mikkosoft Productions
5 Diestributed under the LGPL
8 #include <msp/core/except.h>
15 Context::Context(Device &dev)
17 context=alcCreateContext(dev.get_device(), 0);
19 throw Exception("Couldn't create OpenAL context");
21 alcMakeContextCurrent(context);