mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-10 15:46:42 +02:00
support for vorbis and tremor (-DHAS_TREMOR)
This commit is contained in:
parent
ae557f0d79
commit
73175adedf
4 changed files with 21 additions and 6 deletions
|
@ -19,7 +19,7 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#ifdef HAS_OGG
|
||||
#if defined(HAS_OGG) || defined(HAS_TREMOR)
|
||||
#include "decoder/oggDecoder.h"
|
||||
#endif
|
||||
#include "decoder/pcmDecoder.h"
|
||||
|
@ -97,7 +97,7 @@ void Controller::onMessageReceived(ClientConnection* connection, const msg::Base
|
|||
|
||||
if (headerChunk_->codec == "pcm")
|
||||
decoder_.reset(new PcmDecoder());
|
||||
#ifdef HAS_OGG
|
||||
#if defined(HAS_OGG) || defined(HAS_TREMOR)
|
||||
else if (headerChunk_->codec == "ogg")
|
||||
decoder_.reset(new OggDecoder());
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue