mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-03 11:21:41 +02:00
Add null decoder
This commit is contained in:
parent
638e545cc7
commit
de11cb2d4c
4 changed files with 92 additions and 0 deletions
|
@ -25,6 +25,7 @@
|
|||
|
||||
// local headers
|
||||
#include "decoder/pcm_decoder.hpp"
|
||||
#include "decoder/null_decoder.hpp"
|
||||
#if defined(HAS_OGG) && (defined(HAS_TREMOR) || defined(HAS_VORBIS))
|
||||
#include "decoder/ogg_decoder.hpp"
|
||||
#endif
|
||||
|
@ -185,6 +186,8 @@ void Controller::getNextMessage()
|
|||
else if (headerChunk_->codec == "opus")
|
||||
decoder_ = make_unique<decoder::OpusDecoder>();
|
||||
#endif
|
||||
else if (headerChunk_->codec == "null")
|
||||
decoder_ = make_unique<decoder::NullDecoder>();
|
||||
else
|
||||
throw SnapException("codec not supported: \"" + headerChunk_->codec + "\"");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue