|
Lines 109-150
Link Here
|
| 109 |
|
109 |
|
| 110 |
typedef Mixer_Backend *getMixerFunc( int device ); |
110 |
typedef Mixer_Backend *getMixerFunc( int device ); |
| 111 |
typedef QString getDriverNameFunc( ); |
111 |
typedef QString getDriverNameFunc( ); |
|
|
112 |
typedef DevIterator* getDevIteratorFunc( ); |
| 112 |
|
113 |
|
| 113 |
struct MixerFactory { |
114 |
struct MixerFactory { |
| 114 |
getMixerFunc *getMixer; |
115 |
getMixerFunc *getMixer; |
| 115 |
getDriverNameFunc *getDriverName; |
116 |
getDriverNameFunc *getDriverName; |
|
|
117 |
getDevIteratorFunc *getDevIterator; |
| 116 |
}; |
118 |
}; |
| 117 |
|
119 |
|
| 118 |
MixerFactory g_mixerFactories[] = { |
120 |
MixerFactory g_mixerFactories[] = { |
| 119 |
|
121 |
|
| 120 |
#if defined(NAS_MIXER) |
122 |
#if defined(NAS_MIXER) |
| 121 |
{ NAS_getMixer, 0 }, |
123 |
{ NAS_getMixer, NULL, NULL }, |
| 122 |
#endif |
124 |
#endif |
| 123 |
|
125 |
|
| 124 |
#if defined(SUN_MIXER) |
126 |
#if defined(SUN_MIXER) |
| 125 |
{ SUN_getMixer, SUN_getDriverName }, |
127 |
{ SUN_getMixer, SUN_getDriverName, NULL }, |
| 126 |
#endif |
128 |
#endif |
| 127 |
|
129 |
|
| 128 |
#if defined(IRIX_MIXER) |
130 |
#if defined(IRIX_MIXER) |
| 129 |
{ IRIX_getMixer, IRIX_getDriverName }, |
131 |
{ IRIX_getMixer, IRIX_getDriverName, NULL }, |
| 130 |
#endif |
132 |
#endif |
| 131 |
|
133 |
|
| 132 |
#if defined(ALSA_MIXER) |
134 |
#if defined(ALSA_MIXER) |
| 133 |
{ ALSA_getMixer, ALSA_getDriverName }, |
135 |
{ ALSA_getMixer, ALSA_getDriverName, ALSA_getDevIterator }, |
| 134 |
#endif |
136 |
#endif |
| 135 |
|
137 |
|
| 136 |
#if defined(OSS4_MIXER) |
138 |
#if defined(OSS4_MIXER) |
| 137 |
{ OSS4_getMixer, OSS4_getDriverName }, |
139 |
{ OSS4_getMixer, OSS4_getDriverName, NULL }, |
| 138 |
#endif |
140 |
#endif |
| 139 |
|
141 |
|
| 140 |
#if defined(OSS_MIXER) |
142 |
#if defined(OSS_MIXER) |
| 141 |
{ OSS_getMixer, OSS_getDriverName }, |
143 |
{ OSS_getMixer, OSS_getDriverName, NULL }, |
| 142 |
#endif |
144 |
#endif |
| 143 |
|
145 |
|
| 144 |
#if defined(HPUX_MIXER) |
146 |
#if defined(HPUX_MIXER) |
| 145 |
{ HPUX_getMixer, HPUX_getDriverName }, |
147 |
{ HPUX_getMixer, HPUX_getDriverName, NULL }, |
| 146 |
#endif |
148 |
#endif |
| 147 |
|
149 |
|
| 148 |
{ 0, 0 } |
150 |
{ NULL, NULL, NULL } |
| 149 |
}; |
151 |
}; |
| 150 |
|
152 |
|