Commit 21fe00fa authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Vorbis: disable encoder code when SOUT is disabled

parent 889cc775
...@@ -42,18 +42,20 @@ ...@@ -42,18 +42,20 @@
#include <ogg/ogg.h> #include <ogg/ogg.h>
#ifdef MODULE_NAME_IS_tremor #ifdef MODULE_NAME_IS_tremor
#include <tremor/ivorbiscodec.h> # include <tremor/ivorbiscodec.h>
#define INTERLEAVE_TYPE int32_t # define INTERLEAVE_TYPE int32_t
#else #else
#include <vorbis/vorbisenc.h> # include <vorbis/codec.h>
#define INTERLEAVE_TYPE float # define INTERLEAVE_TYPE float
#define HAVE_VORBIS_ENCODER
# ifdef ENABLE_SOUT
# define HAVE_VORBIS_ENCODER
# include <vorbis/vorbisenc.h>
# ifndef OV_ECTL_RATEMANAGE_AVG # ifndef OV_ECTL_RATEMANAGE_AVG
# define OV_ECTL_RATEMANAGE_AVG 0x0 # define OV_ECTL_RATEMANAGE_AVG 0x0
# endif # endif
# endif
#endif #endif
/***************************************************************************** /*****************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment