blob: 39c8330d3b5bd22861df8c7c23f5cbd4225241a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include "audio.h"
#include <string.h>
struct audio_oops* setup_arts(const char *dev, const char *ctl);
struct audio_oops* setup_alsa(const char *dev, const char *ctl);
struct audio_oops* setup_soundsystem(const char* ss, const char* dev, const char* ctl)
{
if(!ss) {
ERRORLOG("audio: Internal error, trying to setup a NULL soundsystem.\n");
return NULL;
}
#ifdef USE_ARTS
if(!strcmp(ss, "arts"))
return setup_arts(dev, ctl);
#endif
#if defined(HAVE_ARTS_LIBASOUND2)
if(!strcmp(ss, "alsa"))
return setup_alsa(dev, ctl);
#endif
#ifdef USE_SUN_AUDIO
if(!strcmp(ss, "sun"))
return setup_sun_audio(dev, ctl);
#endif
ERRORLOG("audio: unknown soundsystem '%s'\n", ss);
return NULL;
}
|