home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1999 February / PCO_0299.ISO / filesbbs / linux / mikmod-3.000 / mikmod-3 / mikmod-3.1.2 / playercode / mdreg.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-07  |  2.0 KB  |  79 lines

  1. /*    MikMod sound library
  2.     (c) 1998 Miodrag Vallat and others - see file AUTHORS for complete list
  3.  
  4.     This library is free software; you can redistribute it and/or modify
  5.     it under the terms of the GNU Library General Public License as
  6.     published by the Free Software Foundation; either version 2 of
  7.     the License, or (at your option) any later version.
  8.  
  9.     This program is distributed in the hope that it will be useful,
  10.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.     GNU Library General Public License for more details.
  13.  
  14.     You should have received a copy of the GNU Library General Public
  15.     License along with this library; if not, write to the Free Software
  16.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. */
  18.  
  19. /*==============================================================================
  20.  
  21.   $Id: mdreg.c,v 1.17 1998/12/07 06:00:52 miod Exp $
  22.  
  23.   Routine for registering all drivers in MikMod for the current platform.
  24.  
  25. ==============================================================================*/
  26.  
  27. #ifdef HAVE_CONFIG_H
  28. #include "config.h"
  29. #endif
  30.  
  31. #include <mikmod_internals.h>
  32.  
  33. void MikMod_RegisterAllDrivers(void)
  34. {
  35.     /* Register network drivers */
  36. #ifdef DRV_AF
  37.     MikMod_RegisterDriver(&drv_AF);
  38. #endif
  39. #ifdef DRV_ESD
  40.     MikMod_RegisterDriver(&drv_esd);
  41. #endif
  42.  
  43.     /* Register hardware drivers */
  44. #ifdef DRV_AIX
  45.     MikMod_RegisterDriver(&drv_aix);
  46. #endif
  47. #ifdef DRV_ALSA
  48.     MikMod_RegisterDriver(&drv_alsa);
  49. #endif
  50. #ifdef DRV_HP
  51.     MikMod_RegisterDriver(&drv_hp);
  52. #endif
  53. #ifdef DRV_OSS
  54.     MikMod_RegisterDriver(&drv_oss);
  55. #endif
  56. #ifdef DRV_SGI
  57.     MikMod_RegisterDriver(&drv_sgi);
  58. #endif
  59. #ifdef DRV_SUN
  60.     MikMod_RegisterDriver(&drv_sun);
  61. #endif
  62. #ifdef DRV_DART
  63.     MikMod_RegisterDriver(&drv_dart);
  64. #endif
  65. #ifdef DRV_OS2
  66.     MikMod_RegisterDriver(&drv_os2s);
  67.     MikMod_RegisterDriver(&drv_os2l);
  68. #endif
  69.  
  70.     /* Register disk writers */
  71.     MikMod_RegisterDriver(&drv_raw);
  72.     MikMod_RegisterDriver(&drv_wav);
  73.  
  74.     /* Register other drivers */
  75.     MikMod_RegisterDriver(&drv_stdout);
  76.  
  77.     MikMod_RegisterDriver(&drv_nos);
  78. }
  79.