support for vorbis and tremor (-DHAS_TREMOR)

This commit is contained in:
badaix 2016-04-10 22:52:02 +02:00
parent ae557f0d79
commit 73175adedf
4 changed files with 21 additions and 6 deletions

View file

@ -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