Skip to content

Commit

Permalink
Add Theora support to systems which use libtremor
Browse files Browse the repository at this point in the history
  • Loading branch information
fedor4ever committed Jan 5, 2015
1 parent e27f5f6 commit 7225101
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions video/theora_decoder.cpp
Expand Up @@ -360,7 +360,11 @@ static double rint(double v) {
}

bool TheoraDecoder::VorbisAudioTrack::decodeSamples() {
#ifdef USE_TREMOR
ogg_int32_t **pcm;
#else
float **pcm;
#endif

// if there's pending, decoded audio, grab it
int ret = vorbis_synthesis_pcmout(&_vorbisDSP, &pcm);
Expand Down
5 changes: 5 additions & 0 deletions video/theora_decoder.h
Expand Up @@ -33,7 +33,12 @@
#include "graphics/surface.h"

#include <theora/theoradec.h>

#ifdef USE_TREMOR
#include <tremor/ivorbiscodec.h>
#else
#include <vorbis/codec.h>
#endif

namespace Common {
class SeekableReadStream;
Expand Down

0 comments on commit 7225101

Please sign in to comment.