You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdemultimedia/kscd/libwm/audio/audio.c

30 lines
716 B

#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;
}