mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 16:16:42 +02:00
Add support for PulseAudio (WIP)
This commit is contained in:
parent
bf7f986faa
commit
d9e0b7792d
5 changed files with 334 additions and 0 deletions
|
@ -35,6 +35,9 @@
|
|||
#ifdef HAS_ALSA
|
||||
#include "player/alsa_player.hpp"
|
||||
#endif
|
||||
#ifdef HAS_PULSE
|
||||
#include "player/pulse_player.hpp"
|
||||
#endif
|
||||
#ifdef HAS_OPENSL
|
||||
#include "player/opensl_player.hpp"
|
||||
#endif
|
||||
|
@ -91,6 +94,9 @@ std::vector<std::string> Controller::getSupportedPlayerNames()
|
|||
#ifdef HAS_ALSA
|
||||
result.emplace_back("alsa");
|
||||
#endif
|
||||
#ifdef HAS_PULSE
|
||||
result.emplace_back("pulse");
|
||||
#endif
|
||||
#ifdef HAS_OBOE
|
||||
result.emplace_back("oboe");
|
||||
#endif
|
||||
|
@ -180,6 +186,10 @@ void Controller::getNextMessage()
|
|||
if (!player_)
|
||||
player_ = createPlayer<AlsaPlayer>(settings_.player, "alsa");
|
||||
#endif
|
||||
#ifdef HAS_PULSE
|
||||
if (!player_)
|
||||
player_ = createPlayer<PulsePlayer>(settings_.player, "pulse");
|
||||
#endif
|
||||
#ifdef HAS_OBOE
|
||||
if (!player_)
|
||||
player_ = createPlayer<OboePlayer>(settings_.player, "oboe");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue