Revision d81c4f8b server/src/Arbiter.cpp
server/src/Arbiter.cpp | ||
---|---|---|
28 | 28 |
|
29 | 29 |
#include "Arbiter.h" |
30 | 30 |
#include "AudioPlayerLibAO.h" |
31 |
#include "AudioPlayerRSB.h" |
|
32 | 31 |
#include <boost/algorithm/string/predicate.hpp> |
33 | 32 |
#include <mutex> |
34 | 33 |
#include <thread> |
... | ... | |
43 | 42 |
// allow none for no sound output |
44 | 43 |
audio_player = NULL; |
45 | 44 |
} |
46 |
else if (iequals(audio_output.substr(0, 3), "rsb")) { |
|
47 |
#ifdef RSB_SUPPORT |
|
48 |
audio_player = new AudioPlayerRSB(audio_output); |
|
49 |
#else |
|
50 |
printf("> ERROR: hlc is compiled without RSB support, RSB audio transport not available, defaulting to libao (default " |
|
51 |
"output!)\n"); |
|
52 |
audio_player = new AudioPlayerLibAO(""); |
|
53 |
#endif |
|
54 |
} |
|
55 | 45 |
else { |
56 | 46 |
audio_player = new AudioPlayerLibAO(audio_output); |
57 | 47 |
} |
Also available in: Unified diff