mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-12 08:36:43 +02:00
Add alsa stream source
This commit is contained in:
parent
8b0e005a02
commit
4d7b73df7d
6 changed files with 355 additions and 6 deletions
|
@ -18,6 +18,7 @@
|
|||
|
||||
#include "stream_manager.hpp"
|
||||
#include "airplay_stream.hpp"
|
||||
#include "alsa_stream.hpp"
|
||||
#include "common/aixlog.hpp"
|
||||
#include "common/snap_exception.hpp"
|
||||
#include "common/str_compat.hpp"
|
||||
|
@ -73,6 +74,10 @@ PcmStreamPtr StreamManager::addStream(const std::string& uri)
|
|||
{
|
||||
stream = make_shared<ProcessStream>(pcmListener_, ioc_, streamUri);
|
||||
}
|
||||
else if (streamUri.scheme == "alsa")
|
||||
{
|
||||
stream = make_shared<AlsaStream>(pcmListener_, ioc_, streamUri);
|
||||
}
|
||||
else if ((streamUri.scheme == "spotify") || (streamUri.scheme == "librespot"))
|
||||
{
|
||||
// Overwrite sample format here instead of inside the constructor, to make sure
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue