1 /* MikMod sound library
2 (c) 1998, 1999 Miodrag Vallat and others - see file AUTHORS for
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.
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.
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
21 /*==============================================================================
23 Routine for registering all drivers in libmikmod for the current platform.
25 ==============================================================================*/
31 #include "mikmod_internals.h"
33 static void _mm_registeralldrivers(void)
35 /* Register network drivers */
37 _mm_registerdriver(&drv_AF);
40 _mm_registerdriver(&drv_pulseaudio);
43 _mm_registerdriver(&drv_esd);
46 _mm_registerdriver(&drv_nas);
49 /* Register hardware drivers - hardware mixing */
51 _mm_registerdriver(&drv_ultra);
54 _mm_registerdriver(&drv_sam9407);
57 /* Register multi-platform drivers -- software mixing */
59 _mm_registerdriver(&drv_sdl);
62 _mm_registerdriver(&drv_openal);
65 /* Register OS-specific hardware drivers - software mixing */
67 _mm_registerdriver(&drv_ahi);
70 _mm_registerdriver(&drv_aix);
73 _mm_registerdriver(&drv_alsa);
76 _mm_registerdriver(&drv_hp);
79 _mm_registerdriver(&drv_sndio);
82 _mm_registerdriver(&drv_oss);
85 _mm_registerdriver(&drv_sgi);
88 _mm_registerdriver(&drv_sun);
91 _mm_registerdriver(&drv_dart);
94 _mm_registerdriver(&drv_os2);
97 _mm_registerdriver(&drv_xaudio2);
100 _mm_registerdriver(&drv_ds);
103 _mm_registerdriver(&drv_win);
106 _mm_registerdriver(&drv_mac);
109 _mm_registerdriver(&drv_osx);
112 _mm_registerdriver(&drv_dc);
115 _mm_registerdriver(&drv_gp32);
118 _mm_registerdriver(&drv_psp);
121 _mm_registerdriver(&drv_osles);
124 /* dos drivers - wss first, since some cards emulate sb */
126 _mm_registerdriver(&drv_wss);
129 _mm_registerdriver(&drv_sb);
132 /* Register disk writers */
134 _mm_registerdriver(&drv_wav);
137 _mm_registerdriver(&drv_aiff);
140 _mm_registerdriver(&drv_raw);
143 /* Register other drivers */
145 _mm_registerdriver(&drv_pipe);
147 #if defined(DRV_STDOUT) && !defined(macintosh)
148 _mm_registerdriver(&drv_stdout);
151 /* Register 'nosound' driver */
152 _mm_registerdriver(&drv_nos);
155 MIKMODAPI void MikMod_RegisterAllDrivers(void)
158 _mm_registeralldrivers();