blob: a749fe46536c34391c84ea049b9b97c801a44e8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
}
|