1 #include <Python.h>
2 #include "mod_defs.h"
3 #include "bitstream.h"
4 #include "encoders.h"
5
6 /********************************************************
7 Audio Tools, a module and set of tools for manipulating audio data
8 Copyright (C) 2007-2014 Brian Langenberger
9
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 *******************************************************/
24
25 extern PyTypeObject encoders_ALACEncoderType;
26
MOD_INIT(encoders)27 MOD_INIT(encoders)
28 {
29 PyObject* m;
30
31 MOD_DEF(m, "encoders", "low-level audio format encoders", module_methods)
32
33 encoders_ALACEncoderType.tp_new = PyType_GenericNew;
34 if (PyType_Ready(&encoders_ALACEncoderType) < 0)
35 return MOD_ERROR_VAL;
36
37 Py_INCREF(&encoders_ALACEncoderType);
38 PyModule_AddObject(m, "ALACEncoder",
39 (PyObject *)&encoders_ALACEncoderType);
40
41 return MOD_SUCCESS_VAL(m);
42 }
43