mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-12 16:46:42 +02:00
Add file player for testing
This commit is contained in:
parent
ed81b90186
commit
7af8343650
6 changed files with 156 additions and 3 deletions
|
@ -47,6 +47,7 @@
|
|||
#ifdef HAS_WASAPI
|
||||
#include "player/wasapi_player.h"
|
||||
#endif
|
||||
#include "player/file_player.hpp"
|
||||
|
||||
#include "browseZeroConf/browse_mdns.hpp"
|
||||
#include "common/aixlog.hpp"
|
||||
|
@ -168,6 +169,9 @@ void Controller::getNextMessage()
|
|||
if (!player_)
|
||||
player_ = createPlayer<WASAPIPlayer>(settings_.player, "wasapi");
|
||||
#endif
|
||||
if (!player_ && (settings_.player.player_name == "file"))
|
||||
player_ = createPlayer<FilePlayer>(settings_.player, "file");
|
||||
|
||||
if (!player_)
|
||||
throw SnapException("No audio player support");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue