Add file player for testing

This commit is contained in:
badaix 2020-05-31 13:24:11 +02:00
parent ed81b90186
commit 7af8343650
6 changed files with 156 additions and 3 deletions

View file

@ -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");