First implementation of JackStream

This commit is contained in:
Marcus Weseloh 2024-05-24 13:30:53 +02:00 committed by Johannes Pohl
parent a31238a2fb
commit 3fc86a823b
6 changed files with 580 additions and 0 deletions

View file

@ -24,6 +24,9 @@
#ifdef HAS_ALSA
#include "alsa_stream.hpp"
#endif
#ifdef HAS_JACK
#include "jack_stream.hpp"
#endif
#include "common/snap_exception.hpp"
#include "common/str_compat.hpp"
#include "file_stream.hpp"
@ -101,6 +104,12 @@ PcmStreamPtr StreamManager::addStream(StreamUri& streamUri)
{
stream = make_shared<AlsaStream>(listener, io_context_, settings_, streamUri);
}
#endif
#ifdef HAS_JACK
else if (streamUri.scheme == "jack")
{
stream = make_shared<JackStream>(listener, io_context_, settings_, streamUri);
}
#endif
else if ((streamUri.scheme == "spotify") || (streamUri.scheme == "librespot"))
{