]> git.sesse.net Git - casparcg/blobdiff - modules/oal/oal.cpp
Merge pull request #134 from cambell-prince/master_dshow
[casparcg] / modules / oal / oal.cpp
index 2a39531e6101c9a567e5df524bd367a2656ce3d7..15446a9afe9b94f7f4447d14b0f7a85f90f4eef3 100644 (file)
@@ -1,15 +1,35 @@
+/*\r
+* Copyright 2013 Sveriges Television AB http://casparcg.com/\r
+*\r
+* This file is part of CasparCG (www.casparcg.com).\r
+*\r
+* CasparCG is free software: you can redistribute it and/or modify\r
+* it under the terms of the GNU General Public License as published by\r
+* the Free Software Foundation, either version 3 of the License, or\r
+* (at your option) any later version.\r
+*\r
+* CasparCG is distributed in the hope that it will be useful,\r
+* but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+* GNU General Public License for more details.\r
+*\r
+* You should have received a copy of the GNU General Public License\r
+* along with CasparCG. If not, see <http://www.gnu.org/licenses/>.\r
+*\r
+* Author: Robert Nagy, ronag89@gmail.com\r
+*/\r
+\r
 #include "oal.h"\r
 \r
 #include "consumer/oal_consumer.h"\r
 \r
 #include <core/consumer/frame_consumer.h>\r
 \r
-namespace caspar\r
-{\r
+namespace caspar { namespace oal {\r
 \r
-void init_oal()\r
+void init()\r
 {\r
-       core::register_consumer_factory(create_oal_consumer);\r
+       core::register_consumer_factory([](const std::vector<std::wstring>& params){return create_consumer(params);});\r
 }\r
 \r
-}
\ No newline at end of file
+}}
\ No newline at end of file