2
* KMix -- KDE's full featured mini mixer
5
* Copyright (C) 1996-2000 Christian Esken
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Library General Public
10
* License as published by the Free Software Foundation; either
11
* version 2 of the License, or (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Library General Public License for more details.
18
* You should have received a copy of the GNU Library General Public
19
* License along with this program; if not, write to the Free
20
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23
/* This code is being #include'd from mixer.cpp */
27
#if defined(sun) || defined(__sun__)
32
#include <sys/fcntl.h>
45
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__bsdi__) || defined(_UNIXWARE)
50
# if defined(HAVE_ALIB_H)
53
# warning ** YOU NEED to have libAlib installed to use the HP-UX-Mixer **
54
# endif // HAVE_ALIB_H
57
// PORTING: add #ifdef PLATFORM , commands , #endif, add your new mixer below
58
#if defined(NAS_MIXER)
59
#include "mixer_nas.cpp"
62
#if defined(SUN_MIXER)
63
#include "mixer_sun.cpp"
66
#if defined(IRIX_MIXER)
67
#include "mixer_irix.cpp"
70
#if defined(ALSA_MIXER)
71
#include "mixer_alsa.cpp"
74
#if defined(OSS_MIXER)
75
#include "mixer_oss.cpp"
78
#if defined(HPUX_MIXER)
79
#include "mixer_hpux.cpp"
84
// We cannot handle this! I install a dummy mixer instead.
86
#include "mixer_none.cpp"
90
typedef Mixer *getMixerFunc( int device, int card );
91
typedef Mixer *getMixerSetFunc( MixSet set, int device, int card );
94
getMixerFunc *getMixer;
95
getMixerSetFunc *getMixerSet;
98
MixerFactory g_mixerFactories[] = {
100
#if defined(NAS_MIXER)
104
#if defined(SUN_MIXER)
105
{ SUN_getMixer, SUN_getMixerSet },
108
#if defined(IRIX_MIXER)
109
{ IRIX_getMixer, 0 },
112
#if defined(ALSA_MIXER)
113
{ ALSA_getMixer, ALSA_getMixerSet },
116
#if defined(OSS_MIXER)
117
{ OSS_getMixer, OSS_getMixerSet },
120
#if defined(HPUX_MIXER)
121
{ HPUX_getMixer, 0 },