]> git.tdb.fi Git - libs/al.git/blobdiff - source/device.cpp
Add Streamer class
[libs/al.git] / source / device.cpp
index 422b7ea2f8e055970c6ba9d6d9297c60a0f95e58..dcc78f1aa949b37dbe173adf96a3cb140e1f41ff 100644 (file)
@@ -2,7 +2,7 @@
 
 This file is part of libmspal
 Copyright © 2008 Mikko Rasa, Mikkosoft Productions
-Diestributed under the LGPL
+Distributed under the LGPL
 */
 
 #include <msp/core/except.h>
@@ -27,5 +27,10 @@ Device::Device(const string &spec)
                throw Exception("Couldn't get OpenAL device");
 }
 
+Device::~Device()
+{
+       alcCloseDevice(dev);
+}
+
 } // namespace AL
 } // namespace Msp