diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2010-12-12 15:03:30 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2010-12-12 15:03:30 +0000 |
commit | 26f2bfde03420edad4de1f22cb3d515dc063b20d (patch) | |
tree | 4a8c4abaf4795f38da70a4657c1a0fb3ba9debeb /apps/plugins/mikmod/mlreg.c | |
parent | d192bdf11e06e50645ecb5726658d4b691480a9a (diff) | |
download | rockbox-26f2bfde03420edad4de1f22cb3d515dc063b20d.tar.gz rockbox-26f2bfde03420edad4de1f22cb3d515dc063b20d.zip |
Add MikMod plugin, ported by Jason Yu, with some minor work by Craig Mann and William Peters (FS#8806)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28810 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mikmod/mlreg.c')
-rw-r--r-- | apps/plugins/mikmod/mlreg.c | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/apps/plugins/mikmod/mlreg.c b/apps/plugins/mikmod/mlreg.c new file mode 100644 index 0000000000..e57e82553b --- /dev/null +++ b/apps/plugins/mikmod/mlreg.c | |||
@@ -0,0 +1,66 @@ | |||
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: mlreg.c,v 1.2 2005/03/30 19:11:34 realtech Exp $ | ||
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 | 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); | ||
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_uni); | ||
55 | _mm_registerloader(&load_xm); | ||
56 | |||
57 | _mm_registerloader(&load_m15); | ||
58 | } | ||
59 | |||
60 | void MikMod_RegisterAllLoaders(void) | ||
61 | { | ||
62 | MUTEX_LOCK(lists); | ||
63 | MikMod_RegisterAllLoaders_internal(); | ||
64 | MUTEX_UNLOCK(lists); | ||
65 | } | ||
66 | /* ex:set ts=4: */ | ||