From e8e5747650626442f8f9940ad5bc37b21ca85ad9 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Mon, 17 Jul 2017 00:38:13 +0900 Subject: soundout autoconf --- soundout/soundout.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 soundout/soundout.c (limited to 'soundout/soundout.c') diff --git a/soundout/soundout.c b/soundout/soundout.c new file mode 100644 index 0000000..a749fe4 --- /dev/null +++ b/soundout/soundout.c @@ -0,0 +1,20 @@ +#include "soundout.h" +#include "jackout.h" +#include "pulseout.h" +#include "alsaout.h" + +struct sound_state *sound_init(const char *clientname, unsigned srate, sound_callback cbfunc, void *userptr) { + struct sound_state *ss = 0; +#ifdef ENABLE_JACK + ss = jackout_init(clientname, srate, cbfunc, userptr); +#endif + if (ss) return ss; +#ifdef ENABLE_PULSE + ss = pulseout_init(clientname, srate, cbfunc, userptr); +#endif + if (ss) return ss; +#ifdef ENABLE_ALSA + ss = alsaout_init(clientname, srate, cbfunc, userptr); +#endif + return ss; +} -- cgit v1.2.3