mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-17 11:06:16 +02:00
First implementation of JackStream
This commit is contained in:
parent
a31238a2fb
commit
3fc86a823b
6 changed files with 580 additions and 0 deletions
|
@ -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"))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue