fd41e86b45856efbc9145d41cfbab2ab6e4d72a8
[dosdemo] / libs / mikmod / playercode / mlreg.c
1 /*      MikMod sound library
2         (c) 1998, 1999 Miodrag Vallat and others - see file AUTHORS for
3         complete list.
4
5         This library is free software; you can redistribute it and/or modify
6         it under the terms of the GNU Library General Public License as
7         published by the Free Software Foundation; either version 2 of
8         the License, or (at your option) any later version.
9
10         This program is distributed in the hope that it will be useful,
11         but WITHOUT ANY WARRANTY; without even the implied warranty of
12         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13         GNU Library General Public License for more details.
14
15         You should have received a copy of the GNU Library General Public
16         License along with this library; if not, write to the Free Software
17         Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18         02111-1307, USA.
19 */
20
21 /*==============================================================================
22
23   $Id$
24
25   Routine for registering all loaders in libmikmod for the current platform.
26
27 ==============================================================================*/
28
29 #ifdef HAVE_CONFIG_H
30 #include "config.h"
31 #endif
32
33 #include "mikmod_internals.h"
34
35 static void MikMod_RegisterAllLoaders_internal(void)
36 {
37         _mm_registerloader(&load_669);
38         _mm_registerloader(&load_amf);
39         _mm_registerloader(&load_asy);
40         _mm_registerloader(&load_dsm);
41         _mm_registerloader(&load_far);
42         _mm_registerloader(&load_gdm);
43 /*      _mm_registerloader(&load_gt2);*/ /* load_gt2 isn't complete */
44         _mm_registerloader(&load_it);
45         _mm_registerloader(&load_imf);
46         _mm_registerloader(&load_mod);
47         _mm_registerloader(&load_med);
48         _mm_registerloader(&load_mtm);
49         _mm_registerloader(&load_okt);
50         _mm_registerloader(&load_s3m);
51         _mm_registerloader(&load_stm);
52         _mm_registerloader(&load_stx);
53         _mm_registerloader(&load_ult);
54         _mm_registerloader(&load_umx);
55         _mm_registerloader(&load_uni);
56         _mm_registerloader(&load_xm);
57
58         _mm_registerloader(&load_m15);
59 }
60
61 MIKMODAPI void MikMod_RegisterAllLoaders(void)
62 {
63         MUTEX_LOCK(lists);
64         MikMod_RegisterAllLoaders_internal();
65         MUTEX_UNLOCK(lists);
66 }
67 /* ex:set ts=4: */