audio_core: Implement a cubeb audio sink

This commit is contained in:
darkf 2018-05-25 00:50:37 -05:00
parent 83ee80666f
commit af73dd45f0
6 changed files with 194 additions and 0 deletions

View file

@ -11,12 +11,14 @@
#ifdef HAVE_SDL2
#include "audio_core/sdl2_sink.h"
#endif
#include "audio_core/cubeb_sink.h"
#include "common/logging/log.h"
namespace AudioCore {
// g_sink_details is ordered in terms of desirability, with the best choice at the top.
const std::vector<SinkDetails> g_sink_details = {
{"cubeb", []() { return std::make_unique<CubebSink>(); }},
#ifdef HAVE_SDL2
{"sdl2", []() { return std::make_unique<SDL2Sink>(); }},
#endif